Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Dump fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Feb 17, 2020
1 parent 5624837 commit 8502c4d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions assets/js/blocks/reviews/edit-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Fragment } from '@wordpress/element';
import { __experimentalCreateInterpolateElement } from 'wordpress-element';
import {
Notice,
Expand Down Expand Up @@ -36,7 +35,7 @@ export const getBlockControls = ( editMode, setAttributes ) => (

export const getSharedReviewContentControls = ( attributes, setAttributes ) => {
return (
<Fragment>
<>
<ToggleControl
label={ __( 'Product rating', 'woo-gutenberg-products-block' ) }
checked={ attributes.showReviewRating }
Expand Down Expand Up @@ -108,7 +107,7 @@ export const getSharedReviewContentControls = ( attributes, setAttributes ) => {
}
/>
{ attributes.showReviewImage && (
<Fragment>
<>
<ToggleButtonControl
label={ __(
'Review image',
Expand Down Expand Up @@ -160,9 +159,9 @@ export const getSharedReviewContentControls = ( attributes, setAttributes ) => {
) }
</Notice>
) }
</Fragment>
</>
) }
</Fragment>
</>
);
};

Expand All @@ -171,7 +170,7 @@ export const getSharedReviewListControls = ( attributes, setAttributes ) => {
const maxPerPage = 20;

return (
<Fragment>
<>
<ToggleControl
label={ __( 'Order by', 'woo-gutenberg-products-block' ) }
checked={ attributes.showOrderby }
Expand Down Expand Up @@ -225,6 +224,6 @@ export const getSharedReviewListControls = ( attributes, setAttributes ) => {
min={ minPerPage }
/>
) }
</Fragment>
</>
);
};

0 comments on commit 8502c4d

Please sign in to comment.