Skip to content

Commit

Permalink
update type for labelText in IconButton
Browse files Browse the repository at this point in the history
Signed-off-by: huongg <[email protected]>
  • Loading branch information
Huongg committed May 20, 2024
1 parent 95ef01b commit 9b8e2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/icon-button/icon-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ IconButton.propTypes = {
dataHeapEvent: PropTypes.string,
disabled: PropTypes.bool,
icon: PropTypes.func,
labelText: PropTypes.string,
labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), // it takes a string or a JSX element
onClick: PropTypes.func,
visible: PropTypes.bool,
};
Expand Down

0 comments on commit 9b8e2be

Please sign in to comment.