mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Fix toast types
This commit is contained in:
@@ -61,12 +61,12 @@ const showToast = ({ type, ...props }: NotificationProps) => {
|
|||||||
export const toast = {
|
export const toast = {
|
||||||
clean: cleanNotifications,
|
clean: cleanNotifications,
|
||||||
cleanQueue: cleanNotificationsQueue,
|
cleanQueue: cleanNotificationsQueue,
|
||||||
error: (props: NotificationProps) => showToast({ type: 'success', ...props }),
|
error: (props: NotificationProps) => showToast({ type: 'error', ...props }),
|
||||||
hide: hideNotification,
|
hide: hideNotification,
|
||||||
info: (props: NotificationProps) => showToast({ type: 'success', ...props }),
|
info: (props: NotificationProps) => showToast({ type: 'info', ...props }),
|
||||||
show: showToast,
|
show: showToast,
|
||||||
success: (props: NotificationProps) =>
|
success: (props: NotificationProps) =>
|
||||||
showToast({ type: 'success', ...props }),
|
showToast({ type: 'success', ...props }),
|
||||||
update: updateNotification,
|
update: updateNotification,
|
||||||
warn: (props: NotificationProps) => showToast({ type: 'success', ...props }),
|
warn: (props: NotificationProps) => showToast({ type: 'warning', ...props }),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user