Skip to content

Commit 51d2c02

Browse files
committed
Wrap whole document with div
1 parent 26f84d3 commit 51d2c02

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: example/pages/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const {
77

88
const Home = () => (
99
<div
10-
className="notion"
1110
style={{
1211
maxWidth: 708,
1312
margin: "0 auto",

Diff for: src/block.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Block: React.FC<Block> = props => {
5555
const blockValue = block?.value;
5656
switch (blockValue.type) {
5757
case "page":
58-
return <>{children}</>;
58+
return <div className="notion">{children}</div>;
5959
case "header":
6060
if (!blockValue.properties) return null;
6161
return (

0 commit comments

Comments
 (0)