Skip to content

Commit

Permalink
fix: use PropTypes.node to better coverage
Browse files Browse the repository at this point in the history
Co-authored-by: Braden MacDonald <[email protected]>
  • Loading branch information
rpenido and bradenmacdonald authored Sep 11, 2024
1 parent 8da5510 commit ec4eb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Toast/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Toast.defaultProps = {

Toast.propTypes = {
/** A string or an element that is rendered inside the main body of the `Toast`. */
children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
children: PropTypes.node.isRequired,
/**
* A function that is called on close. It can be used to perform
* actions upon closing of the `Toast`, such as setting the "show"
Expand Down

0 comments on commit ec4eb2f

Please sign in to comment.