Skip to content

Commit

Permalink
Theme: Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jul 21, 2022
1 parent 50690a7 commit 3a7f750
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ import useFocusOnNavigation from '../../hooks/use-focus-on-navigation';

const MyFavorites = () => {
const { isEmpty, query } = useSelect( ( select ) => {
const { getCurrentQuery, getFavorites, getPatternsByQuery, isLoadingPatternsByQuery } = select(
patternStore
);
const { getCurrentQuery, getFavorites, getPatternsByQuery, isLoadingPatternsByQuery } =
select( patternStore );
const _query = getCurrentQuery() || {};
const favorites = getFavorites();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ import { useRoute } from '../../hooks';
const PatternGridMenu = ( { basePath = '', onNavigation, ...props } ) => {
const { path, update: updatePath } = useRoute();
const { categorySlug, isLoading, options } = useSelect( ( select ) => {
const { getCategoryById, getCategories, getQueryFromUrl, getUrlFromQuery, isLoadingCategories } = select(
patternStore
);
const { getCategoryById, getCategories, getQueryFromUrl, getUrlFromQuery, isLoadingCategories } =
select( patternStore );
const query = getQueryFromUrl( path );
// Remove pagination, so we don't go from /page/2/ to /categories/images/page/2/.
delete query.page;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import { store as patternStore } from '../../store';

function PatternGrid( { header, children, onNavigation, query, showPagination = true } ) {
const { isLoading, posts, totalPages } = useSelect( ( select ) => {
const { getPatternTotalPagesByQuery, getPatternsByQuery, isLoadingPatternsByQuery } = select(
patternStore
);
const { getPatternTotalPagesByQuery, getPatternsByQuery, isLoadingPatternsByQuery } =
select( patternStore );

return {
isLoading: query && isLoadingPatternsByQuery( query ),
Expand Down

0 comments on commit 3a7f750

Please sign in to comment.