Use proper state properties in input settings
[MAILPOET-2599]
This commit is contained in:
committed by
Veljko V
parent
f6d4cd11a6
commit
0e2afb9c80
@@ -58,16 +58,16 @@ const InputStylesSettings = ({
|
|||||||
<h3 className="mailpoet-styles-settings-heading">
|
<h3 className="mailpoet-styles-settings-heading">
|
||||||
{MailPoet.I18n.t('formSettingsStylesBackgroundColor')}
|
{MailPoet.I18n.t('formSettingsStylesBackgroundColor')}
|
||||||
{
|
{
|
||||||
styles.backgroundColor !== undefined
|
localStyles.backgroundColor !== undefined
|
||||||
&& (
|
&& (
|
||||||
<ColorIndicator
|
<ColorIndicator
|
||||||
colorValue={styles.backgroundColor}
|
colorValue={localStyles.backgroundColor}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</h3>
|
</h3>
|
||||||
<ColorPalette
|
<ColorPalette
|
||||||
value={styles.backgroundColor}
|
value={localStyles.backgroundColor}
|
||||||
onChange={partial(updateStyles, 'backgroundColor')}
|
onChange={partial(updateStyles, 'backgroundColor')}
|
||||||
colors={settingsColors}
|
colors={settingsColors}
|
||||||
/>
|
/>
|
||||||
@@ -102,7 +102,7 @@ const InputStylesSettings = ({
|
|||||||
localStyles.borderColor !== undefined
|
localStyles.borderColor !== undefined
|
||||||
&& (
|
&& (
|
||||||
<ColorIndicator
|
<ColorIndicator
|
||||||
colorValue={styles.borderColor}
|
colorValue={localStyles.borderColor}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user