Skip to content

Commit 68a1e1d

Browse files
committed
fix: remove unused children prop
1 parent 087b893 commit 68a1e1d

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/packages/safearea/safearea.taro.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TaroSafeAreaProps } from '@/types'
55

66
const classPrefix = 'nut-safe-area'
77
export const SafeArea: FC<TaroSafeAreaProps> = (props) => {
8-
const { className, style, position, children, ...rest } = props
8+
const { className, style, position, ...rest } = props
99

1010
return (
1111
<View
@@ -16,9 +16,7 @@ export const SafeArea: FC<TaroSafeAreaProps> = (props) => {
1616
className
1717
)}
1818
style={style}
19-
>
20-
{children}
21-
</View>
19+
/>
2220
)
2321
}
2422

src/packages/safearea/safearea.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { WebSafeAreaProps } from '@/types'
44

55
const classPrefix = 'nut-safe-area'
66
export const SafeArea: FC<WebSafeAreaProps> = (props) => {
7-
const { className, style, position, children, ...rest } = props
7+
const { className, style, position, ...rest } = props
88

99
return (
1010
<div
@@ -15,9 +15,7 @@ export const SafeArea: FC<WebSafeAreaProps> = (props) => {
1515
className
1616
)}
1717
style={style}
18-
>
19-
{children}
20-
</div>
18+
/>
2119
)
2220
}
2321

0 commit comments

Comments
 (0)