Skip to content

Commit c32745b

Browse files
authored
Allow to override icons (#175)
1 parent 3295698 commit c32745b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ const Toast = (props: ToastProps) => {
323323
<>
324324
{toastType || toast.icon || toast.promise ? (
325325
<div data-icon="">
326-
{toast.promise || toast.type === 'loading' ? <Loader visible={toastType === 'loading'} /> : null}
326+
{(toast.promise || toast.type === 'loading') && !toast.icon ? (
327+
<Loader visible={toastType === 'loading'} />
328+
) : null}
327329
{toast.icon || getAsset(toastType)}
328330
</div>
329331
) : null}

0 commit comments

Comments
 (0)