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