From d501deddc41f944471396ae85c7a198dc9156f66 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 16 Dec 2023 14:51:15 +0800 Subject: [PATCH] feat: add ColorSchemeSwitcher in status page --- src/client/components/monitor/StatusPage/index.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/client/components/monitor/StatusPage/index.tsx b/src/client/components/monitor/StatusPage/index.tsx index 70494f7..be7d4bf 100644 --- a/src/client/components/monitor/StatusPage/index.tsx +++ b/src/client/components/monitor/StatusPage/index.tsx @@ -10,6 +10,7 @@ import { import clsx from 'clsx'; import { useRequest } from '../../../hooks/useRequest'; import { useNavigate } from 'react-router'; +import { ColorSchemeSwitcher } from '../../ColorSchemeSwitcher'; interface MonitorStatusPageProps { slug: string; @@ -59,23 +60,28 @@ export const MonitorStatusPage: React.FC = React.memo( ); return ( -
+
{editMode && ( -
+
setEditMode(false)} />
)}
-
{info?.title}
+
+
{info?.title}
+ + +
{allowEdit && !editMode && (