From 6b0f5d2206d010c1822ab7eaf4edea9a0b79526d Mon Sep 17 00:00:00 2001 From: groguo Date: Wed, 14 Jul 2021 15:40:52 +0000 Subject: [PATCH] Linter fix --- assets/js/base/components/product-list/container.js | 4 +--- assets/js/base/components/product-list/product-list.js | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/assets/js/base/components/product-list/container.js b/assets/js/base/components/product-list/container.js index 6e6cb55d259..717c2728375 100644 --- a/assets/js/base/components/product-list/container.js +++ b/assets/js/base/components/product-list/container.js @@ -9,9 +9,7 @@ import PropTypes from 'prop-types'; */ import ProductList from './product-list'; -const ProductListContainer = ( { - attributes, -} ) => { +const ProductListContainer = ( { attributes } ) => { const [ currentPage, setPage ] = useState( 1 ); const [ currentSort, setSort ] = useState( attributes.orderby ); useEffect( () => { diff --git a/assets/js/base/components/product-list/product-list.js b/assets/js/base/components/product-list/product-list.js index 70c0b1a0cab..f295a2dea16 100644 --- a/assets/js/base/components/product-list/product-list.js +++ b/assets/js/base/components/product-list/product-list.js @@ -27,11 +27,7 @@ import ProductSortSelect from './product-sort-select'; import ProductListItem from './product-list-item'; import './style.scss'; -const generateQuery = ( { - sortValue, - currentPage, - attributes, -} ) => { +const generateQuery = ( { sortValue, currentPage, attributes } ) => { const { columns, rows } = attributes; const getSortArgs = ( orderName ) => { switch ( orderName ) {