Skip to content

Commit 9abc40c

Browse files
priya-tikArnei
andauthored
Basebutton tooltip params (#1402)
* Fix BaseButton to correctly apply tooltipParams when provided * Fix indent --------- Co-authored-by: Arnei <arnewilken@yahoo.de>
1 parent 477ec7f commit 9abc40c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/shared/BaseButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const BaseButton = React.forwardRef<HTMLButtonElement, BaseButtonProps>(({
2929

3030
if (tooltipText) {
3131
return (
32-
<Tooltip title={tooltipParams ? t(tooltipText) : t(tooltipText, tooltipParams)}>
32+
<Tooltip title={tooltipParams ? t(tooltipText, tooltipParams) : t(tooltipText)}>
3333
{buttonComponent}
3434
</Tooltip>
3535
);

0 commit comments

Comments
 (0)