From 343e6e3bfca4a88efac7263bb61b48825dc5b110 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 26 Oct 2023 23:39:36 -0300 Subject: [PATCH] fix(ConfirmationModal/index.tsx): fix typo in tooltipContent variable name refactor(ConfirmationModal/index.tsx): refactor Trigger component to conditionally render ShadTooltip based on tooltipContent value --- src/frontend/src/modals/ConfirmationModal/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/modals/ConfirmationModal/index.tsx b/src/frontend/src/modals/ConfirmationModal/index.tsx index a84f07b96..349e42439 100644 --- a/src/frontend/src/modals/ConfirmationModal/index.tsx +++ b/src/frontend/src/modals/ConfirmationModal/index.tsx @@ -13,10 +13,12 @@ const Trigger: React.FC = ({ tolltipContent, side, }) => { - return ( + return tolltipContent ? (
{children}
+ ) : ( +
{children}
); }; function ConfirmationModal({