Fix toast timing by setting proper TOAST_REMOVE_DELAY
cgen-da7ad80200854a40928e0aebecdd1cc5
This commit is contained in:
parent
1bf4020b65
commit
d17b42b330
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import * as React from "react";
|
||||||
import type { ToastActionElement, ToastProps } from "@/components/ui/toast";
|
import type { ToastActionElement, ToastProps } from "@/components/ui/toast";
|
||||||
|
|
||||||
const TOAST_LIMIT = 1;
|
const TOAST_LIMIT = 1;
|
||||||
const TOAST_REMOVE_DELAY = 1000;
|
const TOAST_REMOVE_DELAY = 6000;
|
||||||
|
|
||||||
type ToasterToast = ToastProps & {
|
type ToasterToast = ToastProps & {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue