Skip to content

Commit bfc1207

Browse files
committed
Adapt example to fullPage
1 parent 2268fa3 commit bfc1207

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

example/pages/index.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ export async function getStaticProps() {
1616
}
1717

1818
const Home = ({ blockMap }) => (
19-
<div
20-
style={{
21-
maxWidth: 708,
22-
margin: "0 auto",
23-
padding: "0 8px",
24-
fontFamily: `-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"`
25-
}}
26-
>
19+
<div>
2720
<Head>
21+
<style>{`body { margin: 0;}`}</style>
2822
<title>react-notion example</title>
2923
</Head>
3024
<NotionRenderer
3125
blockMap={blockMap}
26+
fullPage
27+
hideHeader
3228
customBlockComponents={{
3329
page: ({ blockValue, renderComponent }) => (
3430
<Link href={`/${blockValue.id}`}>{renderComponent()}</Link>

0 commit comments

Comments
 (0)