Add 15 seconds default duration for toast notifications

This commit is contained in:
Carlos Monastyrski
2025-07-02 18:42:02 -03:00
parent cf6181eb73
commit 8a65343f79
@@ -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"
}); });