From 4a07c27da53ba0ab50dc6c0be8a8b70db31e9fa0 Mon Sep 17 00:00:00 2001 From: Mihai C <34626017+mihaic195@users.noreply.github.com> Date: Wed, 29 Sep 2021 14:33:40 +0300 Subject: [PATCH] fix: alert severity (#814) Co-authored-by: Peer Richelsen --- components/ui/Alert.tsx | 2 +- components/ui/alerts/Error.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ui/Alert.tsx b/components/ui/Alert.tsx index 2b12f128cf..4b2f6adbde 100644 --- a/components/ui/Alert.tsx +++ b/components/ui/Alert.tsx @@ -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"; diff --git a/components/ui/alerts/Error.tsx b/components/ui/alerts/Error.tsx index 76407593f3..5548a510f0 100644 --- a/components/ui/alerts/Error.tsx +++ b/components/ui/alerts/Error.tsx @@ -4,5 +4,5 @@ import { Alert } from "../Alert"; * @deprecated use `` instead */ export default function ErrorAlert(props: { message: string; className?: string }) { - return ; + return ; }