mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 00:49:14 +08:00
refactor: Update toast.dismiss to use ToastIdType parameter
This commit is contained in:
parent
2c5a11ee84
commit
2219debdbe
@ -476,7 +476,7 @@ toast.custom = (props: QuickCustomProps) =>
|
||||
...props
|
||||
} satisfies CustomToastProps)
|
||||
|
||||
toast.dismiss = (id: string | number) => sonnerToast.dismiss(id)
|
||||
toast.dismiss = (id: ToastIdType) => sonnerToast.dismiss(id)
|
||||
|
||||
const toastBgColorVariants = cva(undefined, {
|
||||
variants: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user