sarahholder / mushroom-picker

0 stars 0 forks source link

Data Prop Shape #5

Closed sarahholder closed 4 years ago

sarahholder commented 4 years ago

Dev Notes

  1. Create a file called propz in the helpers folder
  2. import PropTypes from 'prop-types'
  3. create a function called mushroomShape that returns the PropTypes.shape object.
  4. The object should list as follows:
    id: PropTypes.string.isRequired,
    name: PropTypes.string.isRequired,
    description: PropTypes.string.isRequired,
    imgUrl: PropTypes.string.isRequired,
    isMagic: PropTypes.bool.isRequired,
    isPoisonous: PropTypes.bool.isRequired,
    isDeadly: PropTypes.bool.isRequired,
  5. File should export the mushroomShape