diff --git a/03_source/frontend/src/sections/party-event/party-event-item.tsx b/03_source/frontend/src/sections/party-event/party-event-item.tsx index c2af365..ca82dab 100644 --- a/03_source/frontend/src/sections/party-event/party-event-item.tsx +++ b/03_source/frontend/src/sections/party-event/party-event-item.tsx @@ -16,15 +16,15 @@ import { useCheckoutContext } from '../checkout/context'; // ---------------------------------------------------------------------- type Props = { - product: IPartyEventItem; + partyEvent: IPartyEventItem; detailsHref: string; }; -export function ProductItem({ product, detailsHref }: Props) { +export function ProductItem({ partyEvent, detailsHref }: Props) { const { onAddToCart } = useCheckoutContext(); const { id, name, coverUrl, price, colors, available, sizes, priceSale, newLabel, saleLabel } = - product; + partyEvent; const handleAddCart = async () => { const newProduct = { diff --git a/03_source/frontend/src/sections/party-event/party-event-list.tsx b/03_source/frontend/src/sections/party-event/party-event-list.tsx index 408d210..8a82ad4 100644 --- a/03_source/frontend/src/sections/party-event/party-event-list.tsx +++ b/03_source/frontend/src/sections/party-event/party-event-list.tsx @@ -10,18 +10,18 @@ import { ProductItemSkeleton } from './party-event-skeleton'; type Props = BoxProps & { loading?: boolean; - products: IPartyEventItem[]; + partyEvents: IPartyEventItem[]; }; -export function PartyEventList({ products, loading, sx, ...other }: Props) { +export function PartyEventList({ partyEvents, loading, sx, ...other }: Props) { const renderLoading = () => ; const renderList = () => - products.map((product) => ( + partyEvents.map((partyEvent) => ( )); @@ -46,7 +46,7 @@ export function PartyEventList({ products, loading, sx, ...other }: Props) { {loading ? renderLoading() : renderList()} - {products.length > 8 && ( + {partyEvents.length > 8 && ( diff --git a/03_source/frontend/src/sections/party-event/view/party-event-edit-view.tsx b/03_source/frontend/src/sections/party-event/view/party-event-edit-view.tsx index 78956a8..f034f67 100644 --- a/03_source/frontend/src/sections/party-event/view/party-event-edit-view.tsx +++ b/03_source/frontend/src/sections/party-event/view/party-event-edit-view.tsx @@ -18,7 +18,7 @@ export function PartyEventEditView({ partyEvent }: Props) { backHref={paths.dashboard.partyEvent.root} links={[ { name: 'Dashboard', href: paths.dashboard.root }, - { name: 'Product', href: paths.dashboard.partyEvent.root }, + { name: 'Party Event', href: paths.dashboard.partyEvent.root }, { name: partyEvent?.name }, ]} sx={{ mb: { xs: 3, md: 5 } }} diff --git a/03_source/frontend/src/sections/party-event/view/party-event-list-view.tsx b/03_source/frontend/src/sections/party-event/view/party-event-list-view.tsx index 1bee4f8..7e6c393 100644 --- a/03_source/frontend/src/sections/party-event/view/party-event-list-view.tsx +++ b/03_source/frontend/src/sections/party-event/view/party-event-list-view.tsx @@ -304,10 +304,10 @@ export function PartyEventListView() { <> + )} );