Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Feb 28, 2024
1 parent 755cff8 commit 978872b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/setting/setting-clash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const SettingClash = ({ onError }: Props) => {
onCatch={onError}
onFormat={onSwitchFormat}
onGuard={(e) => patchClashWithLoading({ "allow-lan": e })}
loading={loading["allow-lan"]}
loading={loading["allow-lan"]}
>
<MDYSwitch edge="end" />
</GuardState>
Expand All @@ -102,7 +102,7 @@ const SettingClash = ({ onError }: Props) => {
onCatch={onError}
onFormat={onSwitchFormat}
onGuard={(e) => patchClashWithLoading({ ipv6: e })}
loading={loading["ipv6"]}
loading={loading["ipv6"]}
>
<MDYSwitch edge="end" />
</GuardState>
Expand All @@ -115,7 +115,7 @@ const SettingClash = ({ onError }: Props) => {
onCatch={onError}
onFormat={(e: any) => e.target.value}
onGuard={(e) => patchClashWithLoading({ "log-level": e })}
loading={loading["log-level"]}
loading={loading["log-level"]}
>
<Select size="small" sx={{ width: 100, "> div": { py: "7.5px" } }}>
<MenuItem value="debug">Debug</MenuItem>
Expand Down
4 changes: 2 additions & 2 deletions src/components/setting/setting-verge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const SettingVerge = ({ onError }: Props) => {
onCatch={onError}
onFormat={(e: any) => e.target.value}
onGuard={(e) => patchVerge({ language: e })}
loading={loading["language"]}
loading={loading["language"]}
>
<Select size="small" sx={{ width: 100, "> div": { py: "7.5px" } }}>
<MenuItem value="zh">中文</MenuItem>
Expand All @@ -108,7 +108,7 @@ const SettingVerge = ({ onError }: Props) => {
value={theme_mode}
onCatch={onError}
onGuard={(e) => patchVerge({ theme_mode: e })}
loading={loading["theme_mode"]}
loading={loading["theme_mode"]}
>
<ThemeModeSwitch />
</GuardState>
Expand Down

0 comments on commit 978872b

Please sign in to comment.