feat: move fetch setting to apis

This commit is contained in:
Gabe Yuan
2024-03-21 15:07:50 +08:00
parent ac921cd5a0
commit 0eeb9c2fbf
4 changed files with 98 additions and 37 deletions

View File

@@ -89,8 +89,6 @@ export default function Settings() {
const {
uiLang,
fetchLimit,
fetchInterval,
minLength,
maxLength,
clearCache,
@@ -121,24 +119,6 @@ export default function Settings() {
</Select>
</FormControl>
<TextField
size="small"
label={i18n("fetch_limit")}
type="number"
name="fetchLimit"
defaultValue={fetchLimit}
onChange={handleChange}
/>
<TextField
size="small"
label={i18n("fetch_interval")}
type="number"
name="fetchInterval"
defaultValue={fetchInterval}
onChange={handleChange}
/>
<TextField
size="small"
label={i18n("translate_interval")}