update webfix

This commit is contained in:
Gabe Yuan
2023-11-14 15:15:19 +08:00
parent 8067f34ce6
commit 0a32f94d32
2 changed files with 44 additions and 29 deletions

View File

@@ -13,12 +13,7 @@ import FormControlLabel from "@mui/material/FormControlLabel";
import Switch from "@mui/material/Switch";
import { useSetting } from "../../hooks/Setting";
import CircularProgress from "@mui/material/CircularProgress";
import {
syncWebfix,
loadOrFetchWebfix,
FIXER_BR,
FIXER_ALL,
} from "../../libs/webfix";
import { syncWebfix, loadOrFetchWebfix, FIXER_ALL } from "../../libs/webfix";
import Button from "@mui/material/Button";
import SyncIcon from "@mui/icons-material/Sync";
import { useAlert } from "../../hooks/Alert";
@@ -33,7 +28,7 @@ function WebfixFields({ rule, webfix, setShow }) {
pattern: "",
selector: "",
rootSelector: "",
fixer: FIXER_BR,
fixer: FIXER_ALL[0],
};
const i18n = useI18n();
const [disabled, setDisabled] = useState(editMode);