From 02a4624b7da796cd33f9d89302afe7a89d480f04 Mon Sep 17 00:00:00 2001 From: Montia37 Date: Tue, 9 Sep 2025 21:25:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=AE=E6=9A=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/sections/Footer.tsx | 2 +- src/components/sections/Header.tsx | 2 +- src/components/ui/button.tsx | 11 ++-- src/components/ui/switch.tsx | 4 +- src/contexts/ThemeContext.tsx | 11 ++++ src/hooks/useTheme.ts | 97 ++++++++++++++++++++---------- src/index.css | 35 +++++------ src/main.tsx | 10 ++- src/pages/instance/PingChart.tsx | 11 ++-- 9 files changed, 118 insertions(+), 65 deletions(-) create mode 100644 src/contexts/ThemeContext.tsx diff --git a/src/components/sections/Footer.tsx b/src/components/sections/Footer.tsx index 8c0d9e8..0b249c7 100644 --- a/src/components/sections/Footer.tsx +++ b/src/components/sections/Footer.tsx @@ -2,7 +2,7 @@ import React from "react"; const Footer: React.FC = () => { return ( -