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,6 +1,7 @@
import { AiOutlineControl } from 'react-icons/ai';
import { skeleton } from '../../helpers/utils';
import config from '../../ezprofile.config';
import PropTypes from 'prop-types';
const ThemeChanger = ({ theme, setTheme, loading }) => {
const changeTheme = (e, selectedTheme) => {
@@ -88,4 +89,10 @@ const ThemeChanger = ({ theme, setTheme, loading }) => {
);
};
ThemeChanger.propTypes = {
theme: PropTypes.string,
setTheme: PropTypes.func,
loading: PropTypes.bool,
};
export default ThemeChanger;