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:
parent
b73ca7c36a
commit
343e6e3bfc
1 changed files with 3 additions and 1 deletions
|
|
@ -13,10 +13,12 @@ const Trigger: React.FC<ContentProps> = ({
|
||||||
tolltipContent,
|
tolltipContent,
|
||||||
side,
|
side,
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return tolltipContent ? (
|
||||||
<ShadTooltip side={side} content={tolltipContent}>
|
<ShadTooltip side={side} content={tolltipContent}>
|
||||||
<div className="h-full w-full">{children}</div>
|
<div className="h-full w-full">{children}</div>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
) : (
|
||||||
|
<div className="h-full w-full">{children}</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
function ConfirmationModal({
|
function ConfirmationModal({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue