update evals (#2462)
This commit is contained in:
@@ -7,12 +7,13 @@ type Option = {
|
|||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
highlight?: boolean;
|
||||||
options: Option[];
|
options: Option[];
|
||||||
value: string;
|
value: string;
|
||||||
onChange: (value: string) => void;
|
onChange: (value: string) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
function SwitchBar({ className, options, value, onChange }: Props) {
|
function SwitchBar({ className, highlight, options, value, onChange }: Props) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
@@ -28,6 +29,7 @@ function SwitchBar({ className, options, value, onChange }: Props) {
|
|||||||
className={cn(
|
className={cn(
|
||||||
"flex cursor-pointer items-center whitespace-nowrap rounded-sm px-3 py-2 text-xs hover:bg-slate-700",
|
"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,
|
"bg-slate-700": selected,
|
||||||
},
|
},
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user