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
This commit is contained in:
anovazzi1 2023-10-26 23:39:36 -03:00
commit 343e6e3bfc

View file

@ -13,10 +13,12 @@ const Trigger: React.FC<ContentProps> = ({
tolltipContent,
side,
}) => {
return (
return tolltipContent ? (
<ShadTooltip side={side} content={tolltipContent}>
<div className="h-full w-full">{children}</div>
</ShadTooltip>
) : (
<div className="h-full w-full">{children}</div>
);
};
function ConfirmationModal({