Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Remove default values from deprecated initialColor and resetColor (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbrud authored Mar 8, 2023
1 parent bec88c6 commit 882726c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/inputs/ColorSelect/ColorSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function ColorSelectComponent({
initial = { color: '#F00', colorSpace: 'HEX' },

// DEPRECATED
initialColor = '#F00',
initialColor,
//

label,
Expand All @@ -44,7 +44,7 @@ function ColorSelectComponent({
reset = { color: initial.color, label: 'reset' },

// DEPRECATED
resetColor = initialColor || initial.color,
resetColor,
//

resetLabel,
Expand All @@ -67,8 +67,8 @@ function ColorSelectComponent({
});

// deprecation handling
if (initialColor) initial.color = initialColor;
if (resetColor) reset.color = resetColor;
if (initialColor) initial.color = initialColor || initial.color;
if (resetColor) reset.color = resetColor || reset.color;
if (resetLabel) reset.label = resetLabel;

const defaultColor = parseToHsl(initial.color);
Expand Down

0 comments on commit 882726c

Please sign in to comment.