mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
Replace setOpen(!open) toggles with functional setOpen(prev => !prev) across codebase
This commit is contained in:
parent
1705e881ec
commit
4e6251ea04
9 changed files with 9 additions and 9 deletions
|
|
@ -93,7 +93,7 @@ export function CommentThread({
|
|||
variant="ghost"
|
||||
size="sm"
|
||||
className="h-6 px-2 text-xs text-muted-foreground hover:text-foreground"
|
||||
onClick={() => setIsRepliesExpanded(!isRepliesExpanded)}
|
||||
onClick={() => setIsRepliesExpanded(prev => !prev)}
|
||||
>
|
||||
{isRepliesExpanded ? (
|
||||
<ChevronDown className="mr-1 size-3" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue