chore: remove obsolated imports
This commit is contained in:
parent
b923944450
commit
ad564c332d
|
@ -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'
|
||||
|
|
|
@ -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 ) => {
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue