Skip to content

Commit

Permalink
fix proptype for children props
Browse files Browse the repository at this point in the history
  • Loading branch information
im6 committed Jan 24, 2021
1 parent 5fb7c74 commit c052388
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/modules/modal/components/Portal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Portal extends Component {
}

Portal.propTypes = {
children: PropTypes.node.isRequired,
children: PropTypes.element.isRequired,
};

export default Portal;
2 changes: 1 addition & 1 deletion src/contexts/Language/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const LanguageProvider = ({ children, initLang, onChange }) => {
};

LanguageProvider.propTypes = {
children: PropTypes.node,
children: PropTypes.element.isRequired,
initLang: PropTypes.string,
onChange: PropTypes.func,
};
2 changes: 1 addition & 1 deletion src/testing/test-utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const AllTheProviders = ({ children }) => {
};

AllTheProviders.propTypes = {
children: PropTypes.node,
children: PropTypes.element,
};

const customRender = (ui, options) =>
Expand Down

0 comments on commit c052388

Please sign in to comment.