Skip to content

Commit e6b4028

Browse files
JackWang032jialan
andauthored
fix: add padding for errorBoundary demos (#328)
Co-authored-by: jialan <[email protected]>
1 parent 7d8889d commit e6b4028

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/errorBoundary/demos/basic.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ const ThrowError = () => {
1212
flexDirection: 'column',
1313
justifyContent: 'center',
1414
alignItems: 'center',
15+
paddingTop: 60,
1516
}}
1617
>
1718
<button
1819
style={{
1920
border: 'none',
2021
backgroundColor: '#1890ff',
2122
cursor: 'pointer',
22-
height: '32px',
23-
borderRadius: '4px',
23+
height: 32,
24+
borderRadius: 4,
2425
}}
2526
onClick={() => setCount((count) => count + 1)}
2627
>

src/errorBoundary/demos/customErrorPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ const ThrowError = () => {
1212
flexDirection: 'column',
1313
justifyContent: 'center',
1414
alignItems: 'center',
15+
paddingTop: 60,
1516
}}
1617
>
1718
<button
1819
style={{
1920
border: 'none',
2021
backgroundColor: '#1890ff',
2122
cursor: 'pointer',
22-
height: '32px',
23-
borderRadius: '4px',
23+
height: 32,
24+
borderRadius: 4,
2425
}}
2526
onClick={() => setCount((count) => count + 1)}
2627
>

0 commit comments

Comments
 (0)