Matchu
f1cfd1ac8f
Okay I actually screwed up the layouts thing a bit! Because right, they need to *share* a LayoutComponent in order to share the UI across the pages. This gets a bit tricky with wanting to change the margin, too. I'll address this with an upcoming refactor!
19 lines
568 B
TypeScript
19 lines
568 B
TypeScript
import ItemSearchPageToolbar from "../../../src/app/components/ItemSearchPageToolbar";
|
|
import ItemSearchPage from "../../../src/app/ItemSearchPage";
|
|
import PageLayout from "../../../src/app/PageLayout";
|
|
import type { NextPageWithLayout } from "../../_app";
|
|
|
|
const ItemSearchPageWrapper: NextPageWithLayout = () => {
|
|
return <ItemSearchPage />;
|
|
};
|
|
|
|
ItemSearchPageWrapper.layoutComponent = ({ children }) => {
|
|
return (
|
|
<PageLayout>
|
|
<ItemSearchPageToolbar marginBottom="6" />
|
|
{children}
|
|
</PageLayout>
|
|
);
|
|
};
|
|
|
|
export default ItemSearchPageWrapper;
|