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_download_notifications": "Gdy pobieranie zostanie zakończone",
"enable_repack_list_notifications": "Gdy dodawany jest nowy repack", "enable_repack_list_notifications": "Gdy dodawany jest nowy repack",
"telemetry": "Telemetria", "telemetry": "Telemetria",
"telemetry_description": "Włącz anonimowe statystyki użycia" "telemetry_description": "Włącz anonimowe statystyki użycia",
"language": "Język"
}, },
"notifications": { "notifications": {
"download_complete": "Pobieranie zakończone", "download_complete": "Pobieranie zakończone",

View File

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

View File

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