Skip to content

Commit

Permalink
Revert include custom gradient picker on gradient picker component
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Dec 5, 2019
1 parent 7c6c5c0 commit dbb5f8b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/components/src/gradient-picker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ import { useCallback, useMemo } from '@wordpress/element';
* Internal dependencies
*/
import CircularOptionPicker from '../circular-option-picker';
import CustomGradientPicker from '../custom-gradient-picker';

export default function GradientPicker( {
className,
gradients,
onChange,
value,
clearable = true,
disableCustomGradients = false,
} ) {
const clearGradient = useCallback(
() => onChange( undefined ),
Expand Down Expand Up @@ -64,11 +62,6 @@ export default function GradientPicker( {
{ __( 'Clear' ) }
</CircularOptionPicker.ButtonAction>
) }
>
{ ! disableCustomGradients && ( <CustomGradientPicker
value={ value }
onChange={ onChange }
/> ) }
</CircularOptionPicker>
/>
);
}

0 comments on commit dbb5f8b

Please sign in to comment.