From 348c9d52ac830c2d7d79d2b27ea8e838631462e0 Mon Sep 17 00:00:00 2001 From: emilkowalski Date: Sun, 14 Jan 2024 19:42:45 +0100 Subject: [PATCH] Add close button prop to toast --- src/index.tsx | 2 +- src/types.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index d60f56b..08686ba 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -295,7 +295,7 @@ const Toast = (props: ToastProps) => { } }} > - {closeButton && !toast.jsx ? ( + {(closeButton || toast.closeButton) && !toast.jsx ? (