An opinionated toast component for React.
Allow to override icons (#175)
Emil Kowalskic32745b19d41
diff --git a/src/index.tsx b/src/index.tsxindex 4ee4e36..4de4d07 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -323,7 +323,9 @@ const Toast = (props: ToastProps) => {<>{toastType || toast.icon || toast.promise ? (<div data-icon="">- {toast.promise || toast.type === 'loading' ? <Loader visible={toastType === 'loading'} /> : null}+ {(toast.promise || toast.type === 'loading') && !toast.icon ? (+ <Loader visible={toastType === 'loading'} />+ ) : null}{toast.icon || getAsset(toastType)}</div>) : null}