Validate missing prop types

This commit is contained in:
Ariful Alam
2022-03-20 01:36:43 +06:00
parent a2ada305a7
commit ec458191fb
11 changed files with 63 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import { GoPrimitiveDot } from 'react-icons/go';
import { skeleton } from '../../helpers/utils';
import config from '../../ezprofile.config';
import { Fragment } from 'react';
import PropTypes from 'prop-types';
const ListItem = ({ time, degree, institution }) => (
<li className="mb-5 ml-4">
@@ -79,4 +79,14 @@ const Education = ({ loading }) => {
);
};
Education.propTypes = {
loading: PropTypes.bool,
};
ListItem.propTypes = {
time: PropTypes.node,
degree: PropTypes.node,
institution: PropTypes.node,
};
export default Education;