mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +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 = {
|
export const toast = {
|
||||||
clean: cleanNotifications,
|
clean: cleanNotifications,
|
||||||
cleanQueue: cleanNotificationsQueue,
|
cleanQueue: cleanNotificationsQueue,
|
||||||
|
error: (props: NotificationProps) => showToast({ type: 'success', ...props }),
|
||||||
hide: hideNotification,
|
hide: hideNotification,
|
||||||
|
info: (props: NotificationProps) => showToast({ type: 'success', ...props }),
|
||||||
show: showToast,
|
show: showToast,
|
||||||
|
success: (props: NotificationProps) =>
|
||||||
|
showToast({ type: 'success', ...props }),
|
||||||
update: updateNotification,
|
update: updateNotification,
|
||||||
|
warn: (props: NotificationProps) => showToast({ type: 'success', ...props }),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user