diff options
| author | Kha Nguyen <hi@khanguyen.com> | 2025-07-24 17:00:49 -0500 |
|---|---|---|
| committer | Kha Nguyen <hi@khanguyen.com> | 2025-07-24 17:00:49 -0500 |
| commit | 1ccacf6bb5db579cf6f343d9de57bce92d296f5f (patch) | |
| tree | 8f4ab02ef1c0a7420c1827607207c52629e56288 /apps/web/src/hooks/use-toast.ts | |
| parent | 0b7a943de30663a37aec93421cbd90dfbd673d87 (diff) | |
| download | opencut-1ccacf6bb5db579cf6f343d9de57bce92d296f5f.tar.gz | |
merge main
Diffstat (limited to 'apps/web/src/hooks/use-toast.ts')
| -rw-r--r-- | apps/web/src/hooks/use-toast.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/web/src/hooks/use-toast.ts b/apps/web/src/hooks/use-toast.ts index c682cd1f..dcc02dcd 100644 --- a/apps/web/src/hooks/use-toast.ts +++ b/apps/web/src/hooks/use-toast.ts @@ -6,7 +6,7 @@ import * as React from "react"; import type { ToastActionElement, ToastProps } from "../components/ui/toast"; const TOAST_LIMIT = 1; -const TOAST_REMOVE_DELAY = 1000000; +const TOAST_REMOVE_DELAY = 1_000_000; type ToasterToast = ToastProps & { id: string; @@ -64,7 +64,7 @@ const addToRemoveQueue = (toastId: string) => { toastTimeouts.delete(toastId); dispatch({ type: "REMOVE_TOAST", - toastId: toastId, + toastId, }); }, TOAST_REMOVE_DELAY); @@ -162,7 +162,7 @@ function toast({ ...props }: Toast) { }); return { - id: id, + id, dismiss, update, }; |
