fix: alert severity (#814)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/677/head^2
Mihai C 2021-09-29 14:33:40 +03:00 committed by GitHub
parent d7df292296
commit 4a07c27da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import classNames from "classnames";
import { ReactNode } from "react";
export interface AlertProps {
title: ReactNode;
title?: ReactNode;
message?: ReactNode;
className?: string;
severity: "success" | "warning" | "error";

View File

@ -4,5 +4,5 @@ import { Alert } from "../Alert";
* @deprecated use `<Alert severity="error" message="x" />` instead
*/
export default function ErrorAlert(props: { message: string; className?: string }) {
return <Alert severity="errror" message={props.message} />;
return <Alert severity="error" message={props.message} />;
}