An opinionated toast component for React.
Display loading icon for loading toast (#359)
Emil Kowalski7e2abfca96a7
diff --git a/src/index.tsx b/src/index.tsxindex a8041a0..492d475 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -363,7 +363,7 @@ const Toast = (props: ToastProps) => {<>{toastType || toast.icon || toast.promise ? (<div data-icon="">- {toast.promise && toast.type === 'loading' && !toast.icon+ {toast.promise || (toast.type === 'loading' && !toast.icon)? toast.icon || icons?.loading || getLoadingIcon(): null}{toast.type !== 'loading' ? toast.icon || icons?.[toastType] || getAsset(toastType) : null}