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