Skip to content

Commit

Permalink
Replace color picker with native <input type="color">
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Aug 19, 2024
1 parent d76f990 commit 03da1e5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 411 deletions.
8 changes: 0 additions & 8 deletions src/components/inputs/color-palette-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ export const ColorPalettePicker: React.FC<{
setSelectedColor([h, s]);
setPickerColor([h, s]);
}}
onOpen={() => {
setSelectedColor([colorPickerColor[0], colorPickerColor[1]]);
setColor(colorPickerColor[0], colorPickerColor[1]);
}}
onMouseUp={() => {
setSelectedColor([colorPickerColor[0], colorPickerColor[1]]);
setColor(colorPickerColor[0], colorPickerColor[1]);
}}
/>
</ColorPalettePickerContainer>
);
Expand Down
Loading

0 comments on commit 03da1e5

Please sign in to comment.