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 './Button.css';
import PropTypes from 'prop-types';
const Button = (props) => {
return (
@@ -14,4 +15,12 @@ const Button = (props) => {
);
};
Button.propTypes = {
children: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
autoFocus: PropTypes.bool,
buttonStyles: PropTypes.object,
clicked: PropTypes.func,
disabled: PropTypes.bool,
};
export default Button;