mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
Add 15 seconds default duration for toast notifications
This commit is contained in:
@@ -65,6 +65,7 @@ export const createNotification = (
|
|||||||
toast(<NotificationContent {...myProps} />, {
|
toast(<NotificationContent {...myProps} />, {
|
||||||
position: "bottom-right",
|
position: "bottom-right",
|
||||||
...toastProps,
|
...toastProps,
|
||||||
|
autoClose: toastProps.autoClose || 15000,
|
||||||
theme: "dark",
|
theme: "dark",
|
||||||
type: myProps?.type || "info"
|
type: myProps?.type || "info"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user