parent
d7df292296
commit
4a07c27da5
|
@ -3,7 +3,7 @@ import classNames from "classnames";
|
||||||
import { ReactNode } from "react";
|
import { ReactNode } from "react";
|
||||||
|
|
||||||
export interface AlertProps {
|
export interface AlertProps {
|
||||||
title: ReactNode;
|
title?: ReactNode;
|
||||||
message?: ReactNode;
|
message?: ReactNode;
|
||||||
className?: string;
|
className?: string;
|
||||||
severity: "success" | "warning" | "error";
|
severity: "success" | "warning" | "error";
|
||||||
|
|
|
@ -4,5 +4,5 @@ import { Alert } from "../Alert";
|
||||||
* @deprecated use `<Alert severity="error" message="x" />` instead
|
* @deprecated use `<Alert severity="error" message="x" />` instead
|
||||||
*/
|
*/
|
||||||
export default function ErrorAlert(props: { message: string; className?: string }) {
|
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