Skip to content

Commit dda07f7

Browse files
authored
Merge pull request #183 from oguzkaganeren/patch-1
Update colorPicker.tsx
2 parents 8960661 + eccc328 commit dda07f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/08_ColorPickerRefactor/src/components/colorPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface Props {
66
onColorUpdated: (color: Color) => void;
77
}
88

9-
const updateColor = (props: Props, colorId: keyof Color) => value => {
9+
const updateColor = (props: Props, colorId: keyof Color) => (value: any) => {
1010
// keyof Color ensures only 'red', 'blue' or 'green' can be passed in.
1111
props.onColorUpdated({
1212
...props.color, // this creates a clone of the current props.color object...

0 commit comments

Comments
 (0)