From f3313a517ba09c1c5a4325c551d26f35320471d0 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 26 Feb 2025 15:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20theme=20switch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/layouts/header.tsx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/components/layouts/header.tsx b/components/layouts/header.tsx index 4ead732..11958da 100644 --- a/components/layouts/header.tsx +++ b/components/layouts/header.tsx @@ -165,6 +165,36 @@ const Header = () => {
+ {/* ------------------- Start Theme Switch ------------------- */} +
+ {themeConfig.theme === 'light' ? ( + + ) : ( + '' + )} + {themeConfig.theme === 'dark' && ( + + )} +
+ {/* ------------------- End Theme Switch ------------------- */} + +