From eb73c879334ce7adcc39e12803ef0f5961168d9f Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 30 Oct 2022 20:18:50 -0700 Subject: [PATCH] Add specific toast types in export --- src/renderer/components/toast/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/components/toast/index.tsx b/src/renderer/components/toast/index.tsx index 554cceb5c..8eb68c2b9 100644 --- a/src/renderer/components/toast/index.tsx +++ b/src/renderer/components/toast/index.tsx @@ -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 }), };