Skip to content

Commit

Permalink
add changes request on colour picker
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Jul 5, 2024
1 parent 3b0dfa6 commit e2e191e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions editor.planx.uk/src/ui/editor/ColorPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface Props {
label?: string;
inline?: boolean;
color?: string;
errorMessage?: string | undefined;
errorMessage?: string;
onChange?: (newColor: string) => void;
}

Expand Down Expand Up @@ -96,7 +96,10 @@ export default function ColorPicker(props: Props): FCReturn {
};

return (
<ErrorWrapper error={props.errorMessage || undefined} id="settings-error">
<ErrorWrapper
error={props.errorMessage || undefined}
id="colour-picker-error"
>
<Root inline={props.inline}>
<Typography mr={2} variant="body2" component="label">
{props.label || "Background colour"}:{" "}
Expand Down

0 comments on commit e2e191e

Please sign in to comment.