Build [v1.14.24]
This commit is contained in:
@@ -16,15 +16,15 @@ export function Toast({ type, message, onClose, duration = 3000 }: ToastProps) {
|
||||
}, [onClose, duration]);
|
||||
|
||||
const bgColor = {
|
||||
success: 'bg-green-500',
|
||||
error: 'bg-red-500',
|
||||
warning: 'bg-yellow-500',
|
||||
info: 'bg-blue-500',
|
||||
success: 'bg-success',
|
||||
error: 'bg-error',
|
||||
warning: 'bg-warning',
|
||||
info: 'bg-primary',
|
||||
}[type];
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`fixed bottom-4 right-4 ${bgColor} text-white px-4 py-2 rounded shadow-lg z-50 animate-fade-in`}
|
||||
className={`fixed bottom-4 right-4 ${bgColor} text-foreground px-4 py-2 shadow-lg z-50 animate-fade-in`}
|
||||
role="alert"
|
||||
aria-live="polite"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user