chore: remove obsolated imports

This commit is contained in:
Tung Du 2024-09-18 20:56:44 +07:00
parent b923944450
commit ad564c332d
4 changed files with 0 additions and 16 deletions

View File

@ -8,11 +8,6 @@
*/
import { store, getContext } from '@woocommerce/interactivity';
/**
* Internal dependencies
*/
import { navigate } from '../../frontend';
const getQueryParams = ( e: Event ) => {
const filterNavContainer = ( e.target as HTMLElement )?.closest(
'nav.wp-block-woocommerce-product-filter'

View File

@ -9,7 +9,6 @@ import { debounce } from '@woocommerce/base-utils';
/**
* Internal dependencies
*/
import { navigate } from '../../frontend';
import type { PriceFilterContext, PriceFilterStore } from './types';
const getUrl = ( context: PriceFilterContext ) => {

View File

@ -5,11 +5,6 @@ import { getContext, store } from '@woocommerce/interactivity';
import { CheckboxListContext } from '@woocommerce/interactivity-components/checkbox-list';
import { DropdownContext } from '@woocommerce/interactivity-components/dropdown';
/**
* Internal dependencies
*/
import { navigate } from '../../frontend';
function getUrl( filters: Array< string | null > ) {
filters = filters.filter( Boolean );
const url = new URL( window.location.href );

View File

@ -6,11 +6,6 @@ import { DropdownContext } from '@woocommerce/interactivity-components/dropdown'
import { HTMLElementEvent } from '@woocommerce/types';
import { CheckboxListContext } from '@woocommerce/interactivity-components/checkbox-list';
/**
* Internal dependencies
*/
import { navigate } from '../../frontend';
const getUrl = ( activeFilters: string ) => {
const url = new URL( window.location.href );
const { searchParams } = url;