mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
fix: autorun controlled component warnings
This commit is contained in:
parent
f2a4049f6c
commit
32d91335cc
@ -33,7 +33,7 @@ import { useTranslation } from 'react-i18next'
|
||||
|
||||
const GeneralConfig: React.FC = () => {
|
||||
const { t, i18n } = useTranslation()
|
||||
const { data: enable, mutate: mutateEnable } = useSWR('checkAutoRun', checkAutoRun)
|
||||
const { data: enable = false, mutate: mutateEnable } = useSWR('checkAutoRun', checkAutoRun)
|
||||
const { appConfig, patchAppConfig } = useAppConfig()
|
||||
const [customThemes, setCustomThemes] = useState<{ key: string; label: string }[]>()
|
||||
const [openCSSEditor, setOpenCSSEditor] = useState(false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user