diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/Content/LocationSelector.js b/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/Content/LocationSelector.js index c5acbe81e..a747e93b3 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/Content/LocationSelector.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/Content/LocationSelector.js @@ -10,7 +10,8 @@ import { } from '../Layout'; const LocationSelector = ( { location, setLocation } ) => { - const { choices, details } = StylingHooks.useLocationProps( location ); + const { choices, details, isActive, setActive } = + StylingHooks.useLocationProps( location ); const activateCheckbox = { value: 'active', @@ -51,7 +52,8 @@ const LocationSelector = ( { location, setLocation } ) => { className="location-activation" separatorAndGap={ false } options={ [ activateCheckbox ] } - value={ 'active' } + value={ isActive } + onChange={ setActive } /> > ); diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/SettingsPanel.js b/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/SettingsPanel.js index 6592b0603..dd5b383b8 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/SettingsPanel.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Styling/SettingsPanel.js @@ -6,16 +6,36 @@ import { ButtonLabel, ButtonColor, } from './Content'; +import { StylingHooks } from '../../../../../data'; -const SettingsPanel = ( { location, setLocation } ) => ( -