mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
Validate missing prop types
This commit is contained in:
@@ -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, position, company }) => (
|
||||
<li className="mb-5 ml-4">
|
||||
@@ -79,4 +79,14 @@ const Experience = ({ loading }) => {
|
||||
);
|
||||
};
|
||||
|
||||
ListItem.propTypes = {
|
||||
time: PropTypes.node,
|
||||
position: PropTypes.node,
|
||||
company: PropTypes.node,
|
||||
};
|
||||
|
||||
Experience.propTypes = {
|
||||
loading: PropTypes.bool,
|
||||
};
|
||||
|
||||
export default Experience;
|
||||
|
||||
Reference in New Issue
Block a user