diff --git a/client/src/App/ProductFruitsWrapper.jsx b/client/src/App/ProductFruitsWrapper.jsx index 4f6ca5dc8..2d3cfbac7 100644 --- a/client/src/App/ProductFruitsWrapper.jsx +++ b/client/src/App/ProductFruitsWrapper.jsx @@ -1,5 +1,6 @@ import React from "react"; import { ProductFruits } from "react-product-fruits"; +import PropTypes from "prop-types"; const ProductFruitsWrapper = React.memo(({ currentUser, workspaceCode }) => { return ( @@ -21,3 +22,11 @@ const ProductFruitsWrapper = React.memo(({ currentUser, workspaceCode }) => { }); export default ProductFruitsWrapper; + +ProductFruitsWrapper.propTypes = { + currentUser: PropTypes.shape({ + authorized: PropTypes.bool, + email: PropTypes.string + }).isRequired, + workspaceCode: PropTypes.string.isRequired +};