Skip to content

Commit

Permalink
removed unsed secondary palatte
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayadav09 committed Jan 25, 2024
1 parent b7dbbdf commit 6ef3250
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ const DesignColorsPanel = ( {
const [ showColorPicker, setShowColorPicker ] = useState( false );
const customPaletteId = colors.length - 1;

const paletteSecondaryColors = Object.entries( colorPalettes[ 1 ] )
.map( ( [ name, color ] ) => {
if ( name !== 'name' ) {
return {
name: __( 'Custom', 'wp-module-onboarding' ),
color,
};
}
return null;
} )
.filter( Boolean );

const handleApplyCustomColors = () => {
setSelectedCustomColors( true );
setIsEditingCustomColors( false );
Expand Down

0 comments on commit 6ef3250

Please sign in to comment.