Replace setOpen(!open) toggles with functional setOpen(prev => !prev) across codebase

This commit is contained in:
JoeMakuta 2026-03-29 18:47:05 +02:00
parent 1705e881ec
commit 4e6251ea04
9 changed files with 9 additions and 9 deletions

View file

@ -45,7 +45,7 @@ export const ToolFallback: ToolCallMessagePartComponent = ({
>
<button
type="button"
onClick={() => setIsExpanded(!isExpanded)}
onClick={() => setIsExpanded(prev => !prev)}
className="flex w-full items-center gap-3 px-5 py-4 text-left transition-colors hover:bg-muted/50 focus:outline-none focus-visible:outline-none"
>
<div