@autobusal/utilities 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/notify.ts +4 -2
- package/package.json +1 -1
package/notify.ts
CHANGED
|
@@ -28,8 +28,10 @@ export const error = (message: string, id: string = message): void => {
|
|
|
28
28
|
toast.error(message, { id });
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
// Claude - 2026-11-05: a longer stay for news the visitor must not miss
|
|
32
|
+
// while the page moves on (a refund that went to the manual queue)
|
|
33
|
+
export const notify = (message: string, duration?: number): void => {
|
|
34
|
+
toast(message, duration ? { duration } : undefined);
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
export const success = (message: string): void => {
|