Skip to content

Commit

Permalink
Merge pull request #7171 from ampproject/remove/amp-settings-from-gal…
Browse files Browse the repository at this point in the history
…lery-block

Eliminate "AMP Settings" panel from Gallery block and move them to AMP advanced settings
  • Loading branch information
westonruter committed Jan 26, 2023
2 parents dfb5402 + 7f3c065 commit bbc5c1c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions assets/src/block-editor/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import { isFunction, isObject, isString } from 'lodash';
*/
import { __ } from '@wordpress/i18n';
import { ToggleControl, PanelBody } from '@wordpress/components';
import { InspectorControls } from '@wordpress/block-editor';
import {
InspectorControls,
InspectorAdvancedControls,
} from '@wordpress/block-editor';
import { select, useSelect } from '@wordpress/data';
import { cloneElement, isValidElement } from '@wordpress/element';

Expand Down Expand Up @@ -340,12 +343,10 @@ ImageBlockLayoutAttributes.propTypes = {
* @return {Object} Inspector Controls.
*/
const GalleryBlockLayoutAttributes = (props) => (
<InspectorControls>
<PanelBody title={__('AMP Settings', 'amp')}>
<AmpLightboxToggle {...props} />
<AmpCarouselToggle {...props} />
</PanelBody>
</InspectorControls>
<InspectorAdvancedControls>
<AmpLightboxToggle {...props} />
<AmpCarouselToggle {...props} />
</InspectorAdvancedControls>
);

/**
Expand Down

0 comments on commit bbc5c1c

Please sign in to comment.