summaryrefslogtreecommitdiffstats
path: root/src/pages/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/index.tsx')
-rw-r--r--src/pages/index.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index da31f7d..6022497 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,9 +1,11 @@
-import type { NextPage } from 'next';
+import Layout from '@components/Layouts/Layout';
+import { NextPageWithLayout } from '@ts/types/app';
import Head from 'next/head';
import Image from 'next/image';
+import type { ReactElement } from 'react';
import styles from '../styles/Home.module.css';
-const Home: NextPage = () => {
+const Home: NextPageWithLayout = () => {
return (
<div className={styles.container}>
<Head>
@@ -69,4 +71,8 @@ const Home: NextPage = () => {
);
};
+Home.getLayout = function getLayout(page: ReactElement) {
+ return <Layout>{page}</Layout>;
+};
+
export default Home;