progress
This commit is contained in:
parent
c212a837cd
commit
830ac1923d
|
@ -15,8 +15,8 @@ function useDimensions(ref: RefObject<HTMLElement>) {
|
||||||
height: ref.current?.offsetHeight ?? 0,
|
height: ref.current?.offsetHeight ?? 0,
|
||||||
}),
|
}),
|
||||||
() => JSON.stringify({
|
() => JSON.stringify({
|
||||||
width: window.innerWidth,
|
width: 0,
|
||||||
height: window.innerHeight
|
height: 0,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
return useMemo(() => JSON.parse(dimensions), [dimensions])
|
return useMemo(() => JSON.parse(dimensions), [dimensions])
|
||||||
|
|
Loading…
Reference in New Issue