feat: style match

This commit is contained in:
Wentao Lyu 2023-04-05 03:07:46 +08:00
parent 9f1ded7f75
commit 579b53de29
6 changed files with 53 additions and 36 deletions

View file

@ -4,7 +4,7 @@ import { cn } from '~/utils';
import { Button } from '../../ui/Button.tsx';
import { Settings2 } from 'lucide-react';
import { Tabs, TabsList, TabsTrigger } from '../../ui/Tabs.tsx';
import SelectDropDown from '../../ui/SelectDropDown';
import SelectDropdown from '../../ui/SelectDropdown';
import Settings from '../../Endpoints/BingAI/Settings.jsx';
import EndpointOptionsPopover from '../../Endpoints/EndpointOptionsPopover';
import SaveAsPresetDialog from '../../Endpoints/SaveAsPresetDialog';
@ -68,7 +68,7 @@ function BingAIOptions() {
(!advancedMode ? ' show' : '')
}
>
<SelectDropDown
<SelectDropdown
title="Mode"
value={jailbreak ? 'Sydney' : 'BingAI'}
setValue={value => setOption('jailbreak')(value === 'Sydney')}

View file

@ -1,6 +1,6 @@
import React, { useEffect } from 'react';
import { useRecoilState, useRecoilValue } from 'recoil';
import SelectDropDown from '../../ui/SelectDropDown.jsx';
import SelectDropdown from '../../ui/SelectDropdown.jsx';
import { cn } from '~/utils/';
import store from '~/store';
@ -35,7 +35,7 @@ function ChatGPTOptions() {
return (
<div className="openAIOptions-simple-container show flex w-full items-center justify-center gap-2">
<SelectDropDown
<SelectDropdown
value={model}
setValue={setOption('model')}
availableValues={models}

View file

@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import { Settings2 } from 'lucide-react';
import { useRecoilState, useRecoilValue } from 'recoil';
import SelectDropDown from '../../ui/SelectDropDown';
import SelectDropdown from '../../ui/SelectDropdown';
import EndpointOptionsPopover from '../../Endpoints/EndpointOptionsPopover';
import SaveAsPresetDialog from '../../Endpoints/SaveAsPresetDialog';
import { Button } from '../../ui/Button.tsx';
@ -89,7 +89,7 @@ function OpenAIOptions() {
' z-50 flex h-[40px] items-center justify-center px-4 hover:bg-slate-50 data-[state=open]:bg-slate-50 dark:hover:bg-gray-600 dark:data-[state=open]:bg-gray-600'
)}
/> */}
<SelectDropDown
<SelectDropdown
value={model}
setValue={setOption('model')}
availableValues={models}