feat: make toast closable and allow custom duration (#5308)
* feat: make toast closable and allow custom duration * use Infinity to keep prevent auto close * rename to DEFAULT_TOAST_TIMEOUT and move to toast.tsx * fix * set closable as false by default and fix design * tweak css * reuse variables Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@ -116,7 +116,6 @@ export const IMAGE_RENDER_TIMEOUT = 500;
|
||||
export const TAP_TWICE_TIMEOUT = 300;
|
||||
export const TOUCH_CTX_MENU_TIMEOUT = 500;
|
||||
export const TITLE_TIMEOUT = 10000;
|
||||
export const TOAST_TIMEOUT = 5000;
|
||||
export const VERSION_TIMEOUT = 30000;
|
||||
export const SCROLL_TIMEOUT = 100;
|
||||
export const ZOOM_STEP = 0.1;
|
||||
|
Reference in New Issue
Block a user