refactor: rename product to partyEvent in API route, types and frontend components
This commit is contained in:
@@ -23,15 +23,15 @@ import { fCurrency, fShortenNumber } from 'src/utils/format-number';
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
type Props = {
|
||||
product: IPartyEventItem;
|
||||
partyEvent: IPartyEventItem;
|
||||
disableActions?: boolean;
|
||||
items?: CheckoutContextValue['state']['items'];
|
||||
onAddToCart?: CheckoutContextValue['onAddToCart'];
|
||||
};
|
||||
|
||||
export function ProductDetailsSummary({
|
||||
export function PartyEventDetailsSummary({
|
||||
items,
|
||||
product,
|
||||
partyEvent,
|
||||
onAddToCart,
|
||||
disableActions,
|
||||
...other
|
||||
@@ -53,7 +53,7 @@ export function ProductDetailsSummary({
|
||||
totalReviews,
|
||||
inventoryType,
|
||||
subDescription,
|
||||
} = product;
|
||||
} = partyEvent;
|
||||
|
||||
const existProduct = !!items?.length && items.map((item) => item.id).includes(id);
|
||||
|
||||
|
Reference in New Issue
Block a user