Featured Product: Remove ability to change source product (https://github.com/woocommerce/woocommerce-blocks/pull/415)

This commit is contained in:
Kelly Dwan 2019-02-12 10:04:36 -05:00 committed by GitHub
parent 299412bb0f
commit ee8e185e4d
1 changed files with 0 additions and 22 deletions

View File

@ -126,18 +126,6 @@ class FeaturedProduct extends Component {
return (
<InspectorControls key="inspector">
<PanelBody
title={ __( 'Product', 'woo-gutenberg-products-block' ) }
initialOpen={ false }
>
<ProductControl
selected={ attributes.productId || 0 }
onChange={ ( value = [] ) => {
const id = value[ 0 ] ? value[ 0 ].id : 0;
setAttributes( { productId: id, mediaId: 0, mediaSrc: '' } );
} }
/>
</PanelBody>
<PanelBody title={ __( 'Content', 'woo-gutenberg-products-block' ) }>
<ToggleControl
label={ __( 'Show description', 'woo-gutenberg-products-block' ) }
@ -255,16 +243,6 @@ class FeaturedProduct extends Component {
setAttributes( { contentAlign: nextAlign } );
} }
/>
<Toolbar
controls={ [
{
icon: 'edit',
title: __( 'Edit' ),
onClick: () => setAttributes( { editMode: ! editMode } ),
isActive: editMode,
},
] }
/>
<MediaUploadCheck>
<Toolbar>
<MediaUpload