Skip to content

Commit

Permalink
refactor: move useUrlQuery to folder hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
chornos13 committed Feb 18, 2021
1 parent 490aa03 commit 3eba878
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/data/useProfession.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from 'react-query'
import ApiCall from 'services/ApiCall'
import useUrlQuery, { UseUrlQueryOptions } from 'helpers/QueryUrl/useUrlQuery'
import useUrlQuery, { UseUrlQueryOptions } from 'hooks/useUrlQuery/useUrlQuery'
import { AxiosError } from 'axios'

interface UseProfessionData {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ArrayQuery, { ArrayQueryOptions } from 'helpers/QueryUrl/ArrayQuery'
import ArrayQuery, { ArrayQueryOptions } from 'hooks/useUrlQuery/ArrayQuery'

export interface QueryUrlOptions {
filtered?: ArrayQueryOptions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ArrayQuery from 'helpers/QueryUrl/ArrayQuery'
import ArrayQuery from 'hooks/useUrlQuery/ArrayQuery'

describe('test basic function', () => {
test('should set query', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QueryUrl from 'helpers/QueryUrl/QueryUrl'
import QueryUrl from 'hooks/useUrlQuery/QueryUrl'

describe('test basic query url', () => {
test('should add filtered', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QueryUrl, { QueryUrlOptions } from 'helpers/QueryUrl/QueryUrl'
import QueryUrl, { QueryUrlOptions } from 'hooks/useUrlQuery/QueryUrl'
import { useMemo, useRef, useState } from 'react'
import queryString from 'query-string'
import _ from 'lodash'
Expand Down

0 comments on commit 3eba878

Please sign in to comment.