mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
toast dismissal
This commit is contained in:
1 parent
7ba3d7f8c5
commit
fd684a40a8
2 files changed
+2
-1
No files matched your search
@@ -47,6 +47,7 @@ const Toast = React.forwardRef<
|
||||
<ToastPrimitives.Root
|
||||
ref={ref}
|
||||
className={cn(toastVariants({ variant }), className)}
|
||||
duration={5000}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
} from "@/components/ui/toast"
|
||||
|
||||
const TOAST_LIMIT = 1
|
||||
const TOAST_REMOVE_DELAY = 1000000
|
||||
const TOAST_REMOVE_DELAY = 1000
|
||||
|
||||
type ToasterToast = ToastProps & {
|
||||
id: string
|
||||
|
||||
Reference in new issue
Block a user