Skip to content

Commit 1de62fd

Browse files
committed
fix: example
1 parent a7d642a commit 1de62fd

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

example/index.tsx

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,20 @@ export const Example = () => {
2626
padding: '3rem',
2727
}}
2828
/>
29-
{rect && (
30-
<div
31-
style={{
32-
display: 'flex',
33-
alignItems: 'center',
34-
justifyContent: 'center',
35-
color: 'white',
36-
width: `${rect.width / 2}px`,
37-
height: `${rect.height / 2}px`,
38-
backgroundColor: 'green',
39-
padding: '3rem',
40-
}}
41-
>
42-
I am always half the size!
43-
</div>
44-
)}
29+
<div
30+
style={{
31+
display: 'flex',
32+
alignItems: 'center',
33+
justifyContent: 'center',
34+
color: 'white',
35+
width: `${rect.width / 2}px`,
36+
height: `${rect.height / 2}px`,
37+
backgroundColor: 'green',
38+
padding: '3rem',
39+
}}
40+
>
41+
I am always half the size!
42+
</div>
4543
</div>
4644
)
4745
}

0 commit comments

Comments
 (0)