From cec5a85790f840d30f3972f17afecb8a18f63b60 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: Sun, 16 Feb 2025 19:59:01 +0900 Subject: [PATCH] chore: Hide the close button when toastType is loading (#516) #514 #476 --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 029a2d9..808e683 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -410,7 +410,7 @@ const Toast = (props: ToastProps) => { toastRef.current?.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`); }} > - {closeButton && !toast.jsx ? ( + {closeButton && !toast.jsx && toastType !== 'loading' ? (