We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8960661 + eccc328 commit dda07f7Copy full SHA for dda07f7
hooks/08_ColorPickerRefactor/src/components/colorPicker.tsx
@@ -6,7 +6,7 @@ interface Props {
6
onColorUpdated: (color: Color) => void;
7
}
8
9
-const updateColor = (props: Props, colorId: keyof Color) => value => {
+const updateColor = (props: Props, colorId: keyof Color) => (value: any) => {
10
// keyof Color ensures only 'red', 'blue' or 'green' can be passed in.
11
props.onColorUpdated({
12
...props.color, // this creates a clone of the current props.color object...
0 commit comments