From c14c68cfce375f359e71874b0cad900cdac375ee Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 5 May 2022 18:36:27 -0500 Subject: [PATCH] SoapboxConfig: put theme items into List --- .../components/color-with-picker.tsx | 5 +- app/soapbox/features/soapbox_config/index.tsx | 61 ++++++++----------- 2 files changed, 28 insertions(+), 38 deletions(-) diff --git a/app/soapbox/features/soapbox_config/components/color-with-picker.tsx b/app/soapbox/features/soapbox_config/components/color-with-picker.tsx index 711883807..3fac5b9d2 100644 --- a/app/soapbox/features/soapbox_config/components/color-with-picker.tsx +++ b/app/soapbox/features/soapbox_config/components/color-with-picker.tsx @@ -10,12 +10,11 @@ import type { ColorChangeHandler } from 'react-color'; interface IColorWithPicker { buttonId: string, - label: React.ReactNode, value: string, onChange: ColorChangeHandler, } -const ColorWithPicker: React.FC = ({ buttonId, label, value, onChange }) => { +const ColorWithPicker: React.FC = ({ buttonId, value, onChange }) => { const node = useRef(null); const [active, setActive] = useState(false); const [placement, setPlacement] = useState(null); @@ -39,8 +38,6 @@ const ColorWithPicker: React.FC = ({ buttonId, label, value, o return (
- -
{
- - + } + hintText={ + + + }> + + + + }> } + buttonId='brandColor' value={soapbox.brandColor} onChange={handleColorChange(['brandColor'], (color) => color.hex)} /> + + }> } + buttonId='accentColor' value={soapbox.accentColor} onChange={handleColorChange(['accentColor'], (color) => color.hex)} /> - -
-
- - -
-
-
- - - } - hintText={ - -
+ +