Auto-prettification
This commit is contained in:
parent
05c9d3513a
commit
3d30a1adbc
|
@ -328,8 +328,7 @@ function GroupsList(props: {
|
||||||
|
|
||||||
const { height } = useWindowSize()
|
const { height } = useWindowSize()
|
||||||
const [containerRef, setContainerRef] = useState<HTMLDivElement | null>(null)
|
const [containerRef, setContainerRef] = useState<HTMLDivElement | null>(null)
|
||||||
const remainingHeight =
|
const remainingHeight = (height ?? 0) - (containerRef?.offsetTop ?? 0)
|
||||||
(height ?? 0) - (containerRef?.offsetTop ?? 0)
|
|
||||||
|
|
||||||
const notifIsForThisItem = useMemo(
|
const notifIsForThisItem = useMemo(
|
||||||
() => (itemHref: string) =>
|
() => (itemHref: string) =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user