Skip to content

Commit

Permalink
Revert "compat: the ColorPallet component wp compatibility"
Browse files Browse the repository at this point in the history
This reverts commit 74c9e88.
  • Loading branch information
rezaelahidev committed Nov 12, 2024
1 parent fa37607 commit 1fd355a
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}
onChange={(color: Object) => {
setValue(color.hex);
}}
onChangeComplete={(color: Object) =>
setValue(color.hex)
}
/>

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

0 comments on commit 1fd355a

Please sign in to comment.