update evals (#2462)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user