+
-
-
- {
- setAttributes( { mediaId: media.id, mediaSrc: media.url } );
- } }
- allowedTypes={ [ 'image' ] }
- value={ mediaId }
- render={ ( { open } ) => (
-
- ) }
- />
-
-
-
- { ! attributes.editMode && this.getInspectorControls() }
- { editMode ? (
- this.renderEditMode()
- ) : (
-
- { !! category ? (
-
-
-
- { showDesc && (
-
- ) }
-
-
-
-
-
- ) : (
- }
- label={ __( 'Featured Category', 'woo-gutenberg-products-block' ) }
- >
- { ! loaded ? (
-
- ) : (
- __( 'No product category is selected.', 'woo-gutenberg-products-block' )
- ) }
-
- ) }
-
- ) }
-
+ { showDesc && (
+
+ ) }
+
+
+
+
+