fix: alert severity (#814)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Mihai CandPeer Richelsen authored and GitHub committed 2021-09-29 11:33:40 +00:00
1 parent d7df292296
commit 4a07c27da5
2 files changed
+2 -2

No files matched your search

+1 -1
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";
+1 -1
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} />;
}