update evals (#2462)

This commit is contained in:
Shuchang Zheng
2025-05-26 10:10:19 -07:00
committed by GitHub
parent 0774fd66a7
commit 037808a027

View File

@@ -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,
},
)}