mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-09 19:03:33 +02:00
Integrated update experience (#259)
This commit is contained in:
@@ -16,7 +16,7 @@ export interface ToastProps {
|
||||
className?: string;
|
||||
timeout: number | null;
|
||||
action?: (args: { hide: () => void }) => ReactNode;
|
||||
icon?: ShowToastRequest['icon'];
|
||||
icon?: ShowToastRequest['icon'] | null;
|
||||
color?: ShowToastRequest['color'];
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ export function Toast({ children, open, onClose, timeout, action, icon, color }:
|
||||
[open],
|
||||
);
|
||||
|
||||
const toastIcon = icon ?? (color && color in ICONS && ICONS[color]);
|
||||
const toastIcon = icon === null ? null : icon ?? (color && color in ICONS && ICONS[color]);
|
||||
|
||||
return (
|
||||
<m.div
|
||||
|
||||
Reference in New Issue
Block a user