refactor(webui): remove unused picker styling hooks
This commit is contained in:
@@ -7656,16 +7656,12 @@ function ProviderPicker({
|
|||||||
value,
|
value,
|
||||||
emptyLabel,
|
emptyLabel,
|
||||||
showProviderLogos = false,
|
showProviderLogos = false,
|
||||||
triggerClassName,
|
|
||||||
contentClassName,
|
|
||||||
onChange,
|
onChange,
|
||||||
}: {
|
}: {
|
||||||
providers: Array<{ name: string; label: string }>;
|
providers: Array<{ name: string; label: string }>;
|
||||||
value: string;
|
value: string;
|
||||||
emptyLabel: string;
|
emptyLabel: string;
|
||||||
showProviderLogos?: boolean;
|
showProviderLogos?: boolean;
|
||||||
triggerClassName?: string;
|
|
||||||
contentClassName?: string;
|
|
||||||
onChange: (provider: string) => void;
|
onChange: (provider: string) => void;
|
||||||
}) {
|
}) {
|
||||||
const selectedProvider = providers.find((provider) => provider.name === value) ?? null;
|
const selectedProvider = providers.find((provider) => provider.name === value) ?? null;
|
||||||
@@ -7682,7 +7678,6 @@ function ProviderPicker({
|
|||||||
"h-8 w-[210px] justify-between rounded-full border-input bg-background px-3 text-[13px] font-normal shadow-none",
|
"h-8 w-[210px] justify-between rounded-full border-input bg-background px-3 text-[13px] font-normal shadow-none",
|
||||||
"hover:bg-accent/55 focus-visible:ring-2 focus-visible:ring-ring",
|
"hover:bg-accent/55 focus-visible:ring-2 focus-visible:ring-ring",
|
||||||
disabled && "text-muted-foreground",
|
disabled && "text-muted-foreground",
|
||||||
triggerClassName,
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span className="flex min-w-0 items-center gap-2">
|
<span className="flex min-w-0 items-center gap-2">
|
||||||
@@ -7699,10 +7694,7 @@ function ProviderPicker({
|
|||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent
|
<DropdownMenuContent
|
||||||
align="end"
|
align="end"
|
||||||
className={cn(
|
className="max-h-[18rem] w-[240px] overflow-y-auto scrollbar-thin scrollbar-track-transparent"
|
||||||
"max-h-[18rem] w-[240px] overflow-y-auto scrollbar-thin scrollbar-track-transparent",
|
|
||||||
contentClassName,
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
{providers.map((provider) => {
|
{providers.map((provider) => {
|
||||||
const selected = provider.name === value;
|
const selected = provider.name === value;
|
||||||
|
|||||||
Reference in New Issue
Block a user