From e572d94bb3714cf5ed1e01c79cf28ec802624c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=8C=EB=85=B8=EB=A6=AC?= <67145096+ynng3@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:37:01 +0900 Subject: [PATCH] Hide the close button when toastType is loading #514 #476 --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index a3ea512..05fa5f1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -331,7 +331,7 @@ const Toast = (props: ToastProps) => { toastRef.current?.style.setProperty('--swipe-amount', `${swipeAmount}px`); }} > - {closeButton && !toast.jsx ? ( + {closeButton && !toast.jsx && toastType !== 'loading' ? (