From 838e0f991007cedbc3b95656edf2831436f8fd5b Mon Sep 17 00:00:00 2001 From: jialin Date: Fri, 25 Apr 2025 10:29:59 +0800 Subject: [PATCH] style: code viewer --- src/pages/profile/components/custom-ui.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pages/profile/components/custom-ui.tsx b/src/pages/profile/components/custom-ui.tsx index 4353034b..f6401a6f 100644 --- a/src/pages/profile/components/custom-ui.tsx +++ b/src/pages/profile/components/custom-ui.tsx @@ -1,3 +1,4 @@ +import { colorPrimary } from '@/config/theme'; import useUserSettings from '@/hooks/use-user-settings'; import { Button, ColorPicker } from 'antd'; import React from 'react'; @@ -14,12 +15,22 @@ const CustomUI: React.FC = () => { }); }; + const handleReset = () => { + setUserSettings({ + ...userSettings, + colorPrimary: colorPrimary + }); + }; + return (

Custom UI Component

- -
+ +
+
);