From 91c8fd14df5e07280ab6f64dabff296ebc37e0e6 Mon Sep 17 00:00:00 2001 From: asharonbaltazar Date: Wed, 7 Dec 2022 12:15:17 -0500 Subject: [PATCH] feat: add notif type --- frontend/components/context/Notifications/Notification.tsx | 1 + .../components/context/Notifications/NotificationProvider.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/components/context/Notifications/Notification.tsx b/frontend/components/context/Notifications/Notification.tsx index 0263a05c1..e473ddb52 100644 --- a/frontend/components/context/Notifications/Notification.tsx +++ b/frontend/components/context/Notifications/Notification.tsx @@ -42,6 +42,7 @@ const Notification = ({ { "bg-green-600": notification.type === "success", "bg-red-500": notification.type === "error", + "bg-blue-500": notification.type === "info", } )} role="alert" diff --git a/frontend/components/context/Notifications/NotificationProvider.tsx b/frontend/components/context/Notifications/NotificationProvider.tsx index d0dd7a1fb..b029dc6c6 100644 --- a/frontend/components/context/Notifications/NotificationProvider.tsx +++ b/frontend/components/context/Notifications/NotificationProvider.tsx @@ -2,7 +2,7 @@ import { createContext, ReactNode, useContext, useState } from "react"; import Notifications from "./Notifications"; -type NotificationType = "success" | "error"; +type NotificationType = "success" | "error" | "info"; export type Notification = { text: string;