main #58

Merged
YasinOnm08 merged 17 commits from React-Group/interstellar_ai:main into main 2024-10-10 08:00:05 +02:00
Showing only changes of commit f1f124147d - Show all commits

View file

@ -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}