From 73e6002cc751fa19e0fa8a02503dda447aa69ae3 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 8 Nov 2022 19:01:05 -0800 Subject: [PATCH] Fix toast types --- src/renderer/components/toast/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/toast/index.tsx b/src/renderer/components/toast/index.tsx index 8eb68c2b9..6a4b5d187 100644 --- a/src/renderer/components/toast/index.tsx +++ b/src/renderer/components/toast/index.tsx @@ -61,12 +61,12 @@ const showToast = ({ type, ...props }: NotificationProps) => { export const toast = { clean: cleanNotifications, cleanQueue: cleanNotificationsQueue, - error: (props: NotificationProps) => showToast({ type: 'success', ...props }), + error: (props: NotificationProps) => showToast({ type: 'error', ...props }), hide: hideNotification, - info: (props: NotificationProps) => showToast({ type: 'success', ...props }), + info: (props: NotificationProps) => showToast({ type: 'info', ...props }), show: showToast, success: (props: NotificationProps) => showToast({ type: 'success', ...props }), update: updateNotification, - warn: (props: NotificationProps) => showToast({ type: 'success', ...props }), + warn: (props: NotificationProps) => showToast({ type: 'warning', ...props }), };