Skip to content

Commit

Permalink
PR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaKozlova committed Dec 16, 2024
1 parent 333cfb2 commit b83db51
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ const useStyles = makeStyles({
});

const ITEMS_LIMIT = 8;
const DEFAULT_COLOR_HSV = tinycolor('#2be700').toHsv();
const DEFAULT_SELECTED_VALUE = 'FFF';
const DEFAULT_SELECTED_COLOR = '#FFFFFF';
const DEFAULT_SELECTED_VALUE = '2be700';
const DEFAULT_SELECTED_COLOR = '#2be700';
const DEFAULT_COLOR_HSV = tinycolor(DEFAULT_SELECTED_COLOR).toHsv();

export const ColorAndSwatchPickerExample = () => {
const styles = useStyles();
Expand Down Expand Up @@ -80,8 +80,8 @@ export const ColorAndSwatchPickerExample = () => {
const resetColors = () => {
setItems([]);
setColorFocusTarget(null);
setSelectedValue('fff');
setSelectedColor('#fff');
setSelectedValue(DEFAULT_SELECTED_VALUE);
setSelectedColor(DEFAULT_SELECTED_COLOR);
setColor(DEFAULT_COLOR_HSV);
};

Expand Down

0 comments on commit b83db51

Please sign in to comment.