PropTypes and refactoring

This commit is contained in:
2021-05-04 19:22:45 -05:00
parent 811f022229
commit ace51f61d1
30 changed files with 491 additions and 279 deletions

View File

@@ -1,5 +1,6 @@
import React from 'react';
import './CheckBox.css';
import PropTypes from 'prop-types';
const CheckBox = (props) => {
return (
@@ -19,4 +20,12 @@ const CheckBox = (props) => {
);
};
CheckBox.propTypes = {
autoFocus: PropTypes.bool,
checked: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
disabled: PropTypes.bool,
label: PropTypes.string,
changed: PropTypes.func,
};
export default CheckBox;