Closed rtate2 closed 4 years ago
• In src/helpers/propz/teamShape.js create:
src/helpers/propz/teamShape.js
const teamShape = PropTypes.shape({ id: PropTypes.string, date: PropTypes.string.isRequired, time: PropTypes.string.isRequired, player1: PropTypes.string.isRequired, player2: PropTypes.string.isRequired, player3: PropTypes.string.isRequired, player4: PropTypes.string.isRequired, player5: PropTypes.string.isRequired, name: PropTypes.string.isRequired, isWaitlist: PropTypes.bool.isRequired });
• At the top of the file import PropTypes from 'prop-types';
import PropTypes from 'prop-types';
• At the very bottom of the file export default { teamShape };
export default { teamShape };
Dev Notes
• In
src/helpers/propz/teamShape.js
create:• At the top of the file
import PropTypes from 'prop-types';
• At the very bottom of the file
export default { teamShape };