From 9c43b31fc08022564f562e62854d0864a654f0c0 Mon Sep 17 00:00:00 2001 From: GyDi Date: Sun, 16 Jan 2022 18:30:25 +0800 Subject: [PATCH] refactor: something --- ...{window-control.tsx => layout-control.tsx} | 4 +-- src/components/notice.tsx | 6 ++++- src/components/profile-item.tsx | 25 +++++++++++-------- src/components/{ => setting}/guard-state.tsx | 2 +- .../{ => setting}/palette-switch.tsx | 0 src/components/setting/setting-clash.tsx | 2 +- src/components/setting/setting-verge.tsx | 6 ++--- .../{ => setting}/sysproxy-tooltip.tsx | 3 +-- src/pages/_layout.tsx | 4 +-- src/pages/profiles.tsx | 4 +-- 10 files changed, 32 insertions(+), 24 deletions(-) rename src/components/{window-control.tsx => layout-control.tsx} (92%) rename src/components/{ => setting}/guard-state.tsx (97%) rename src/components/{ => setting}/palette-switch.tsx (100%) rename src/components/{ => setting}/sysproxy-tooltip.tsx (94%) diff --git a/src/components/window-control.tsx b/src/components/layout-control.tsx similarity index 92% rename from src/components/window-control.tsx rename to src/components/layout-control.tsx index 4b5e470..7756906 100644 --- a/src/components/window-control.tsx +++ b/src/components/layout-control.tsx @@ -6,7 +6,7 @@ import { HorizontalRuleRounded, } from "@mui/icons-material"; -const WindowControl = () => { +const LayoutControl = () => { return ( <>