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

Commit

Permalink
Linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grogou committed Jul 14, 2021
1 parent 791b38b commit 6b0f5d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions assets/js/base/components/product-list/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( () => {
Expand Down
6 changes: 1 addition & 5 deletions assets/js/base/components/product-list/product-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 6b0f5d2

Please sign in to comment.