mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
refactor: reformat files to require parens around params (#316)
This commit is contained in:
parent
91ef4872d6
commit
a17b878617
50 changed files with 106 additions and 106 deletions
|
|
@ -5,7 +5,7 @@ import { cn } from '~/utils/';
|
|||
|
||||
function Dropdown({ value, onChange, options, className, containerClassName }) {
|
||||
const currentOption =
|
||||
options.find(element => element === value || element?.value === value) ?? value;
|
||||
options.find((element) => element === value || element?.value === value) ?? value;
|
||||
return (
|
||||
<div className={cn('flex items-center justify-center gap-2', containerClassName)}>
|
||||
<div className="relative w-full">
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ const ModelSelect = ({ model, onChange, availableModels, ...props }) => {
|
|||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent
|
||||
className="w-56 dark:bg-gray-700"
|
||||
onCloseAutoFocus={event => event.preventDefault()}
|
||||
onCloseAutoFocus={(event) => event.preventDefault()}
|
||||
>
|
||||
<DropdownMenuLabel className="dark:text-gray-300">Select a model</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuRadioGroup value={model} onValueChange={onChange} className="overflow-y-auto">
|
||||
{availableModels.map(model => (
|
||||
{availableModels.map((model) => (
|
||||
<DropdownMenuRadioItem
|
||||
key={model}
|
||||
value={model}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue