Skip to content

Automate browser based workflows with AI

update evals (#2462)

Shuchang Zheng037808a027ba
diff --git a/skyvern-frontend/src/components/SwitchBar.tsx b/skyvern-frontend/src/components/SwitchBar.tsx
index b3c216856..47d98d53f 100644
--- a/skyvern-frontend/src/components/SwitchBar.tsx
+++ b/skyvern-frontend/src/components/SwitchBar.tsx
@@ -7,12 +7,13 @@ type Option = {
type Props = {
className?: string;
+ highlight?: boolean;
options: Option[];
value: string;
onChange: (value: string) => void;
};
-function SwitchBar({ className, options, value, onChange }: Props) {
+function SwitchBar({ className, highlight, options, value, onChange }: Props) {
return (
<div
className={cn(
@@ -28,6 +29,7 @@ function SwitchBar({ className, options, value, onChange }: Props) {
className={cn(
"flex cursor-pointer items-center whitespace-nowrap rounded-sm px-3 py-2 text-xs hover:bg-slate-700",
{
+ "bg-slate-700/40": highlight && !selected,
"bg-slate-700": selected,
},
)}