Add specific toast types in export

This commit is contained in:
jeffvli
2022-10-30 20:18:50 -07:00
parent 7725d3dfbb
commit eb73c87933
+5
View File
@@ -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 }),
}; };