mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
fix: biome format and lint issues in highlights-card
This commit is contained in:
parent
ba8abc9fef
commit
1d21871f2e
1 changed files with 8 additions and 1 deletions
|
|
@ -1,6 +1,12 @@
|
|||
"use client"
|
||||
|
||||
import { useState, useCallback, useRef, useEffect, useLayoutEffect } from "react"
|
||||
import {
|
||||
useState,
|
||||
useCallback,
|
||||
useRef,
|
||||
useEffect,
|
||||
useLayoutEffect,
|
||||
} from "react"
|
||||
import { cn } from "@lib/utils"
|
||||
import { dmSansClassName } from "@/lib/fonts"
|
||||
import {
|
||||
|
|
@ -93,6 +99,7 @@ export function HighlightsCard({
|
|||
setIsExpanded(false)
|
||||
}, [items])
|
||||
|
||||
// biome-ignore lint/correctness/useExhaustiveDependencies: re-run when item or expansion changes to detect clamping
|
||||
useLayoutEffect(() => {
|
||||
const el = contentRef.current
|
||||
if (!el) return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue