Skip to content

Commit

Permalink
compat: the ColorPallet component wp compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaelahidev committed Nov 12, 2024
1 parent 1522723 commit 74c9e88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ export default function ColorPickerControl({
<ColorPallet
enableAlpha={true}
color={value}
onChangeComplete={(color: Object) =>
setValue(color.hex)
}
onChange={(color: Object) => {
setValue(color.hex);
}}
/>

{children}
Expand All @@ -181,7 +181,7 @@ export default function ColorPickerControl({
<ColorPallet
enableAlpha={false}
color={value}
onChangeComplete={(color: Object) => setValue(color.hex)}
onChange={(color: Object) => setValue(color.hex)}
/>

{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ export type ColorPalletProps = {
/**
* event that will be fired on color change
*/
onChangeComplete: (color: string) => void,
onChange: (color: string) => void,
};

0 comments on commit 74c9e88

Please sign in to comment.