Skip to content

Commit

Permalink
edit page to work with new page layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer-Sch committed Nov 14, 2023
1 parent eb39a4c commit c8a6bb4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { ReactElement } from "react";
import Link from "next/link";
import type { NextPage } from "next";
import type { NextPageWithLayout } from "./_app";
import { MetaHeader } from "~~/components/MetaHeader";
import CleanLayout from "~~/components/layouts/CleanLayout";

const Home: NextPage = () => {
const LandingPage: NextPageWithLayout = () => {
return (
<>
<MetaHeader />
<MetaHeader /> {/* Look into MetaHeader - should it be moved to _app.tsx ??? */}
<div className="flex flex-col items-center pt-10">
<div className="px-5">
<h1 className="text-center mb-8">
Expand All @@ -26,4 +28,8 @@ const Home: NextPage = () => {
);
};

export default Home;
LandingPage.getLayout = function getLayout(page: ReactElement) {
return <CleanLayout>{page}</CleanLayout>;
};

export default LandingPage;

0 comments on commit c8a6bb4

Please sign in to comment.