hide clear cache in userscript

This commit is contained in:
Gabe Yuan
2023-09-06 23:39:11 +08:00
parent 9a2b21eee5
commit b7df44c35a

View File

@@ -11,6 +11,7 @@ import { useSetting } from "../../hooks/Setting";
import { limitNumber } from "../../libs/utils"; import { limitNumber } from "../../libs/utils";
import { useI18n } from "../../hooks/I18n"; import { useI18n } from "../../hooks/I18n";
import { useAlert } from "../../hooks/Alert"; import { useAlert } from "../../hooks/Alert";
import { isExt } from "../../libs/client";
import { import {
UI_LANGS, UI_LANGS,
TRANS_NEWLINE_LENGTH, TRANS_NEWLINE_LENGTH,
@@ -150,6 +151,7 @@ export default function Settings() {
</Select> </Select>
</FormControl> </FormControl>
{isExt && (
<FormControl size="small"> <FormControl size="small">
<InputLabel>{i18n("if_clear_cache")}</InputLabel> <InputLabel>{i18n("if_clear_cache")}</InputLabel>
<Select <Select
@@ -167,6 +169,7 @@ export default function Settings() {
</Link> </Link>
</FormHelperText> </FormHelperText>
</FormControl> </FormControl>
)}
</Stack> </Stack>
</Box> </Box>
); );