diff --git a/components/ColorPicker/ColorPicker.css b/components/ColorPicker/ColorPicker.css index cb912c2..3b6d40a 100644 --- a/components/ColorPicker/ColorPicker.css +++ b/components/ColorPicker/ColorPicker.css @@ -1,15 +1,7 @@ -.color-picker { - margin-left: 8px; -} - .color-picker div { display: flex !important; } -label#color-picker-label { - padding-left: 10px; -} - .color-circle { width: 12px; height: 12px; diff --git a/components/ColorPicker/ColorPicker.tsx b/components/ColorPicker/ColorPicker.tsx index 3516f52..2485272 100644 --- a/components/ColorPicker/ColorPicker.tsx +++ b/components/ColorPicker/ColorPicker.tsx @@ -6,22 +6,7 @@ import { SelectChangeEvent, } from "@mui/material"; import { FunctionComponent } from "react"; - -export const Colors = { - Gray: "#212529", - Red: "#c92a2a", - Pink: "#a61e4d", - Grape: "#862e9c", - Violet: "#5f3dc4", - Indigo: "#364fc7", - Blue: "#1864ab", - Cyan: "#0b7285", - Teal: "#087f5b", - Green: "#2b8a3e", - Lime: "#5c940d", - Yellow: "#e67700", - Orange: "#d9480f", -}; +import { Colors } from "../../utils/colors"; interface ColorPickerProps { selectedColor: string; @@ -33,7 +18,7 @@ const ColorPicker: FunctionComponent = ({ onChangeColor, }) => { return ( - + Color