refactor: rename product to partyEvent in list page and view component
This commit is contained in:
@@ -16,7 +16,7 @@ export default function Page() {
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<PartyEventEditView product={partyEvent} />
|
||||
<PartyEventEditView partyEvent={partyEvent} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
@@ -1,19 +1,19 @@
|
||||
import { useGetProducts } from 'src/actions/product';
|
||||
import { useGetPartyEvents } from 'src/actions/party-event';
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { ProductShopView } from 'src/sections/product/view';
|
||||
import { PartyEventShopView } from 'src/sections/party-event/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Product shop - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { products, productsLoading } = useGetProducts();
|
||||
const { partyEvents, partyEventsLoading } = useGetPartyEvents();
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<ProductShopView products={products} loading={productsLoading} />
|
||||
<PartyEventShopView products={partyEvents} loading={partyEventsLoading} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user