diff --git a/apps/app/components/core/theme/color-picker-input.tsx b/apps/app/components/core/theme/color-picker-input.tsx index f848dd59e..73d71e46b 100644 --- a/apps/app/components/core/theme/color-picker-input.tsx +++ b/apps/app/components/core/theme/color-picker-input.tsx @@ -21,13 +21,21 @@ import { ICustomTheme } from "types"; type Props = { name: keyof ICustomTheme; + position?: "left" | "right"; watch: UseFormWatch; setValue: UseFormSetValue; error: FieldError | Merge> | undefined; register: UseFormRegister; }; -export const ColorPickerInput: React.FC = ({ name, watch, setValue, error, register }) => { +export const ColorPickerInput: React.FC = ({ + name, + position = "left", + watch, + setValue, + error, + register, +}) => { const handleColorChange = (newColor: ColorResult) => { const { hex } = newColor; setValue(name, hex); @@ -104,7 +112,11 @@ export const ColorPickerInput: React.FC = ({ name, watch, setValue, error leaveFrom="opacity-100 translate-y-0" leaveTo="opacity-0 translate-y-1" > - + diff --git a/apps/app/components/core/theme/custom-theme-selector.tsx b/apps/app/components/core/theme/custom-theme-selector.tsx index 3f6752e99..27817c82a 100644 --- a/apps/app/components/core/theme/custom-theme-selector.tsx +++ b/apps/app/components/core/theme/custom-theme-selector.tsx @@ -83,6 +83,7 @@ export const CustomThemeSelector: React.FC = observer(({ preLoadedData }) = observer(({ preLoadedData })