parent
d7df292296
commit
4a07c27da5
|
@ -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";
|
||||
|
|
|
@ -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} />;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue