apply suggestions

This commit is contained in:
piradata 2024-05-18 00:28:59 -03:00
parent 653afa7210
commit 1d4547c2c8
4 changed files with 8 additions and 9858 deletions

9853
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -122,7 +122,8 @@
"enable_download_notifications": "Gdy pobieranie zostanie zakończone",
"enable_repack_list_notifications": "Gdy dodawany jest nowy repack",
"telemetry": "Telemetria",
"telemetry_description": "Włącz anonimowe statystyki użycia"
"telemetry_description": "Włącz anonimowe statystyki użycia",
"language": "Język"
},
"notifications": {
"download_complete": "Pobieranie zakończone",

View File

@ -27,11 +27,11 @@ export function SettingsGeneral({
language: "",
});
const [defaultDownloadsPath, setdefaultDownloadsPath] = useState("");
const [defaultDownloadsPath, setDefaultDownloadsPath] = useState("");
useEffect(() => {
async function fetchdefaultDownloadsPath() {
setdefaultDownloadsPath(await window.electron.getDefaultDownloadsPath());
setDefaultDownloadsPath(await window.electron.getDefaultDownloadsPath());
}
fetchdefaultDownloadsPath();
@ -107,7 +107,7 @@ export function SettingsGeneral({
<Select value={form.language} onChange={handleLanguageChange}>
{Object.keys(languageResources).map((language) => (
<option key={language} value={language}>
{ISO6391.getName(language)}
{ISO6391.getNativeName(language)}
</option>
))}
</Select>

View File

@ -43,13 +43,15 @@ export function Settings() {
updateUserPreferences={handleUpdateUserPreferences}
/>
);
default:
case "behavior":
return (
<SettingsBehavior
userPreferences={userPreferences}
updateUserPreferences={handleUpdateUserPreferences}
/>
);
default:
return <></>
}
}