mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-29 22:02:57 +00:00
feat: add notif type
This commit is contained in:
frontend/components/context/Notifications
@ -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"
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user