Matchu
750ca208f1
One little tricky thing here was moving the `[itemId].tsx` page into the folder as `index.tsx`! Because we didn't have subpages before but now we do!
19 lines
529 B
TypeScript
19 lines
529 B
TypeScript
import ItemSearchPageToolbar from "../../../src/app/components/ItemSearchPageToolbar";
|
|
import ItemPage from "../../../src/app/ItemPage";
|
|
import PageLayout from "../../../src/app/PageLayout";
|
|
import type { NextPageWithLayout } from "../../_app";
|
|
|
|
const ItemPageWrapper: NextPageWithLayout = () => {
|
|
return <ItemPage />;
|
|
};
|
|
|
|
ItemPageWrapper.renderWithLayout = (children) => {
|
|
return (
|
|
<PageLayout>
|
|
<ItemSearchPageToolbar marginBottom="8" />
|
|
{children}
|
|
</PageLayout>
|
|
);
|
|
};
|
|
|
|
export default ItemPageWrapper;
|