diff --git a/frontend/src/components/item-card/item-card.jsx b/frontend/src/components/item-card/item-card.jsx index 57ad69c..60b3f51 100644 --- a/frontend/src/components/item-card/item-card.jsx +++ b/frontend/src/components/item-card/item-card.jsx @@ -4,7 +4,7 @@ import { Button, Card, CardActions, CardContent, CardHeader, Chip, Divider, Stac import PropTypes from 'prop-types'; import MoreInfoModal from './more-info-modal'; -const Presenter = ({ presenterName }) => ( +export const Presenter = ({ presenterName }) => ( @@ -14,7 +14,7 @@ const Presenter = ({ presenterName }) => ( ); // TODO: format cost with commas -const Cost = ({ cost }) => ( +export const Cost = ({ cost }) => ( @@ -106,6 +106,8 @@ const ItemCard = ({ visibility={moreInfoModalVisibility} onVisibilityChange={() => setMoreInfoModalVisibility(false)} title={title} + presenterName={presenterName} + cost={cost} purchaseState={purchaseState} hasProject={hasProject} prerequisites={prerequisites} diff --git a/frontend/src/components/item-card/more-info-modal.jsx b/frontend/src/components/item-card/more-info-modal.jsx index f78581a..c502055 100644 --- a/frontend/src/components/item-card/more-info-modal.jsx +++ b/frontend/src/components/item-card/more-info-modal.jsx @@ -13,6 +13,7 @@ import { Chip, } from '@mui/material'; import PropTypes from 'prop-types'; +import { Cost, Presenter } from './item-card'; const Prerequisites = ({ prerequisites }) => ( <> @@ -42,6 +43,8 @@ const MoreInfoModal = ({ visibility, onVisibilityChange, title, + presenterName, + cost, purchaseState, hasProject, prerequisites, @@ -68,6 +71,9 @@ const MoreInfoModal = ({ > {title} + + + @@ -96,6 +102,8 @@ const MoreInfoModal = ({ MoreInfoModal.propTypes = { title: PropTypes.string, + presenterName: PropTypes.string, + cost: PropTypes.number, isBought: PropTypes.bool, purchaseState: PropTypes.number, prerequisites: PropTypes.string,