mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
style(OpenAIOptions): add dark mode support to Settings2 icon
feat(OpenAIOptions): pass isOpen prop to Settings component to toggle visibility
This commit is contained in:
parent
467e24c9ed
commit
b687ab30ed
2 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ const defaultTextProps =
|
|||
const optionText =
|
||||
'p-0 shadow-none text-right pr-1 h-8 border-transparent focus:ring-[#10a37f] focus:ring-offset-0 focus:ring-opacity-100';
|
||||
|
||||
function Settings() {
|
||||
function Settings({ isOpen }) {
|
||||
const [chatGptLabel, setChatGptLabel] = useState('');
|
||||
const [promptPrefix, setPromptPrefix] = useState('');
|
||||
const [temperature, setTemperature] = useState(1);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ function OpenAIOptions() {
|
|||
)}
|
||||
onClick={triggerAdvancedMode}
|
||||
>
|
||||
<Settings2 className="w-4 text-gray-600" />
|
||||
<Settings2 className="w-4 text-gray-600 dark:text-white" />
|
||||
</Button>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -108,7 +108,7 @@ function OpenAIOptions() {
|
|||
</Button>
|
||||
</div>
|
||||
<div className="h-[375px] p-5">
|
||||
<Settings />
|
||||
<Settings isOpen={advancedMode}/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue