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={ - -
+ +