From 99cf0127f5ee142393f2811435c83f37fe1987e3 Mon Sep 17 00:00:00 2001 From: Chunxian Zhang <1836891291@qq.com> Date: Thu, 28 Jul 2022 01:30:48 +0800 Subject: [PATCH] =?UTF-8?q?fe-29=20=E5=AE=9E=E7=8E=B0=E4=BA=AE=E8=89=B2?= =?UTF-8?q?=E5=92=8C=E6=9A=97=E8=89=B2=E6=A8=A1=E5=BC=8F=E7=9A=84=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lazy-timer-fe/src/components/ThemeSettings.jsx | 88 ++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 lazy-timer-fe/src/components/ThemeSettings.jsx diff --git a/lazy-timer-fe/src/components/ThemeSettings.jsx b/lazy-timer-fe/src/components/ThemeSettings.jsx new file mode 100644 index 0000000..efbdd48 --- /dev/null +++ b/lazy-timer-fe/src/components/ThemeSettings.jsx @@ -0,0 +1,88 @@ +import React from 'react'; +import { MdOutlineCancel } from 'react-icons/md'; +import { BsCheck } from 'react-icons/bs'; +import { TooltipComponent } from '@syncfusion/ej2-react-popups'; + +import { themeColors } from '../data/dummy'; +import { useStateContext } from '../contexts/ContextProvider'; + +const ThemeSettings = () => { + const { setColor, setMode, currentMode, currentColor, setThemeSettings } = useStateContext(); + + return ( +
+
+
+

Settings

+ + +
+
+

Theme Option

+ +
+ + {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */} + +
+
+ + {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */} + +
+
+
+

Theme Colors

+
+ {themeColors.map((item, index) => ( + +
+ +
+
+ ))} +
+
+
+
+ ); +}; + +export default ThemeSettings;