Skip to content

Commit

Permalink
fix(modal types): accept ReactNodes as children
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Jul 15, 2024
1 parent c059fde commit bc59cf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/modal/src/modal-title/modal-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ ModalTitle.defaultProps = {
}

ModalTitle.propTypes = {
children: PropTypes.string,
children: PropTypes.node,
dataTest: PropTypes.string,
}
2 changes: 1 addition & 1 deletion components/modal/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface ModalContentProps {
export const ModalContent: React.FC<ModalContentProps>

export interface ModalTitleProps {
children?: string
children?: React.ReactNode
dataTest?: string
}

Expand Down

0 comments on commit bc59cf7

Please sign in to comment.