feat: add missing propTypes
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { IntlProvider as BaseIntlProvider } from 'react-intl';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import englishMessages from 'locales/en.json';
|
||||
|
||||
const IntlProvider = ({ children }) => {
|
||||
return (
|
||||
<BaseIntlProvider
|
||||
@@ -11,4 +14,9 @@ const IntlProvider = ({ children }) => {
|
||||
</BaseIntlProvider>
|
||||
);
|
||||
};
|
||||
|
||||
IntlProvider.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
};
|
||||
|
||||
export default IntlProvider;
|
||||
|
||||
Reference in New Issue
Block a user