rtate2 / i-got-next

0 stars 0 forks source link

teamShape #11

Closed rtate2 closed 4 years ago

rtate2 commented 4 years ago

Dev Notes

• In src/helpers/propz/teamShape.js create:

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';

• At the very bottom of the file export default { teamShape };