mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
refactor: remove extra children
This commit is contained in:
parent
637365dcf3
commit
00f5217f87
1 changed files with 1 additions and 5 deletions
|
|
@ -11,11 +11,7 @@ type Props = {
|
|||
children(size: Partial<Size>): React.ReactNode
|
||||
} & React.HTMLAttributes<HTMLElement>
|
||||
|
||||
export default function SizeObserver({
|
||||
type = 'div',
|
||||
children,
|
||||
...rest
|
||||
}: React.PropsWithChildren<Props>) {
|
||||
export default function SizeObserver({ type = 'div', children, ...rest }: Props) {
|
||||
const ref = React.useRef<any>()
|
||||
|
||||
const [size, setSize] = React.useState<Partial<Size>>({
|
||||
|
|
|
|||
Loading…
Reference in a new issue