Skip to content

Commit

Permalink
User to Custom
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 18, 2021
1 parent 4e77fd6 commit a592b3c
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const PanelColorGradientSettingsSingleSelect = ( props ) => {

const PanelColorGradientSettingsMultipleSelect = ( props ) => {
const colorGradientSettings = useCommonSingleMultipleSelects();
const userColors = useSetting( 'color.palette.user' );
const customColors = useSetting( 'color.palette.user' );
const themeColors = useSetting( 'color.palette.theme' );
const defaultColors = useSetting( 'color.palette.core' );
const shouldDisplayDefaultColors = useSetting( 'color.defaultPalette' );
Expand All @@ -195,16 +195,16 @@ const PanelColorGradientSettingsMultipleSelect = ( props ) => {
colors: themeColors,
} );
}
if ( userColors && userColors.length ) {
if ( customColors && customColors.length ) {
result.push( {
name: __( 'User' ),
colors: userColors,
name: __( 'Custom' ),
colors: customColors,
} );
}
return result;
}, [ defaultColors, themeColors, userColors ] );
}, [ defaultColors, themeColors, customColors ] );

const userGradients = useSetting( 'color.gradients.user' );
const customGradients = useSetting( 'color.gradients.user' );
const themeGradients = useSetting( 'color.gradients.theme' );
const defaultGradients = useSetting( 'color.gradients.core' );
const shouldDisplayDefaultGradients = useSetting(
Expand All @@ -228,14 +228,14 @@ const PanelColorGradientSettingsMultipleSelect = ( props ) => {
gradients: themeGradients,
} );
}
if ( userGradients && userGradients.length ) {
if ( customGradients && customGradients.length ) {
result.push( {
name: __( 'User' ),
gradients: userGradients,
name: __( 'Custom' ),
gradients: customGradients,
} );
}
return result;
}, [ userGradients, themeGradients, defaultGradients ] );
}, [ customGradients, themeGradients, defaultGradients ] );
return (
<PanelColorGradientSettingsInner
{ ...{ ...colorGradientSettings, ...props } }
Expand Down

0 comments on commit a592b3c

Please sign in to comment.