Skip to content

Commit 96317b7

Browse files
committed
Fix tsc error
1 parent 966dc4f commit 96317b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webview-ui/src/components/settings/AutoApproveToggle.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type { GlobalSettings } from "@roo/schemas"
2+
13
import { useAppTranslation } from "@/i18n/TranslationContext"
24
import { cn } from "@/lib/utils"
35
import { Button } from "@/components/ui"
46

5-
import { GlobalSettings } from "@roo/schemas"
6-
77
type AutoApproveToggles = Pick<
88
GlobalSettings,
99
| "alwaysAllowReadOnly"
@@ -106,7 +106,7 @@ export const AutoApproveToggle = ({ onToggle, ...props }: AutoApproveToggleProps
106106
onClick={() => onToggle(key, !props[key])}
107107
title={t(descriptionKey || "")}
108108
aria-label={t(labelKey)}
109-
aria-pressed={String(props[key])}
109+
aria-pressed={!!props[key]}
110110
data-testid={testId}
111111
className={cn(" aspect-square h-[80px]", !props[key] && "opacity-50")}>
112112
<span className={cn("flex flex-col items-center gap-1")}>

0 commit comments

Comments
 (0)