forked from React-Group/interstellar_ai
Made Patrick happy
This commit is contained in:
parent
dd00c15f34
commit
f1f124147d
1 changed files with 11 additions and 1 deletions
|
@ -111,6 +111,9 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
// Theme selection
|
||||
const [selectedTheme, setSelectedTheme] = useState<string>('');
|
||||
|
||||
// Weather selection
|
||||
const [weatherInfo, setWeatherInfo] = useState(localStorage.getItem('weatherInfo') || "");
|
||||
|
||||
// API Keys
|
||||
|
||||
const [mistral, setMistral] = useState(localStorage.getItem('mistral') || "");
|
||||
|
@ -132,6 +135,7 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
disableChatHistory,
|
||||
disableAIMemory,
|
||||
openSourceMode,
|
||||
weatherInfo,
|
||||
myBoolean
|
||||
},
|
||||
theme: {
|
||||
|
@ -405,7 +409,13 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
checked={myBoolean}
|
||||
setChecked={setMyBoolean}
|
||||
/>
|
||||
|
||||
<TextSettings
|
||||
label="Nearest City"
|
||||
value={weatherInfo}
|
||||
type='text'
|
||||
setValue={setWeatherInfo}
|
||||
placeholder={localStorage.getItem("weatherInfo") || "Enter nearest city"} // Show current name or a default
|
||||
/>
|
||||
<DropdownSetting
|
||||
label="Preferred Language"
|
||||
value={preferredLanguage}
|
||||
|
|
Loading…
Reference in a new issue