feat: move admin bar badge section to the bottom of settings
This commit is contained in:
parent
b016c9364b
commit
ac107360ee
|
@ -163,26 +163,6 @@ const SiteVisibility = () => {
|
|||
}
|
||||
) }
|
||||
</p>
|
||||
<div className="site-visibility-settings-slotfill-section">
|
||||
<h3>{ __( 'Admin bar badge', 'woocommerce' ) }</h3>
|
||||
<ToggleControl
|
||||
label={ __( 'Hide admin bar badge', 'woocommerce' ) }
|
||||
help={ __(
|
||||
'Hide the site visibility badge from the admin bar.',
|
||||
'woocommerce'
|
||||
) }
|
||||
checked={ hideAdminBarBadge === 'yes' }
|
||||
onChange={ ( checked ) => {
|
||||
setHideAdminBarBadge( checked ? 'yes' : 'no' );
|
||||
recordEvent(
|
||||
'site_visibility_hide_admin_bar_badge_toggle',
|
||||
{
|
||||
enabled: checked,
|
||||
}
|
||||
);
|
||||
} }
|
||||
/>
|
||||
</div>
|
||||
<div className="site-visibility-settings-slotfill-section">
|
||||
<RadioControl
|
||||
onChange={ () => {
|
||||
|
@ -323,6 +303,26 @@ const SiteVisibility = () => {
|
|||
) }
|
||||
</p>
|
||||
</div>
|
||||
<div className="site-visibility-settings-slotfill-section">
|
||||
<h3>{ __( 'Admin bar badge', 'woocommerce' ) }</h3>
|
||||
<ToggleControl
|
||||
label={ __( 'Hide admin bar badge', 'woocommerce' ) }
|
||||
help={ __(
|
||||
'Hide the site visibility badge from the admin bar.',
|
||||
'woocommerce'
|
||||
) }
|
||||
checked={ hideAdminBarBadge === 'yes' }
|
||||
onChange={ ( checked ) => {
|
||||
setHideAdminBarBadge( checked ? 'yes' : 'no' );
|
||||
recordEvent(
|
||||
'site_visibility_hide_admin_bar_badge_toggle',
|
||||
{
|
||||
enabled: checked,
|
||||
}
|
||||
);
|
||||
} }
|
||||
/>
|
||||
</div>
|
||||
{ formRef.current && saveButtonRef.current ? (
|
||||
<ConfirmationModal
|
||||
saveButtonRef={ saveButtonRef }
|
||||
|
|
Loading…
Reference in New Issue