Skip to content

Commit 2e4cc46

Browse files
committed
fix
1 parent 26eb5bc commit 2e4cc46

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/lib/Layouts.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export default function Layout({
1010
return (
1111
<>
1212
<HealHeader />
13-
<main id="main-content" className="flex-grow">
14-
{children}
15-
</main>
13+
{children}
1614
<HealFooter />
1715
</>
1816
);

src/pages/_document.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import Document, {
22
DocumentContext,
33
DocumentInitialProps,
4+
Head,
5+
Html,
6+
Main,
7+
NextScript,
48
} from 'next/document';
59
import { ColorSchemeScript } from '@mantine/core';
610

@@ -19,6 +23,19 @@ class Gen3Document extends Document {
1923
),
2024
};
2125
}
26+
render() {
27+
return (
28+
<Html lang="en">
29+
<Head />
30+
<body className="flex flex-col min-h-screen">
31+
<main id="main-content" className="flex-grow">
32+
<Main />
33+
<NextScript />
34+
</main>
35+
</body>
36+
</Html>
37+
);
38+
}
2239
}
2340

2441
export default Gen3Document;

0 commit comments

Comments
 (0)