Skip to content

Commit

Permalink
refactor: hooks/common > hooks/@common으로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
n0eyes committed Oct 20, 2023
1 parent d6055db commit 1f34dcb
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/PetProfile/PetInfoInForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect } from 'react';
import { styled } from 'styled-components';

import CameraIcon from '@/assets/svg/camera_icon.svg';
import { useImageUpload } from '@/hooks/common/useImageUpload';
import { useImageUpload } from '@/hooks/@common/useImageUpload';
import { PetProfile } from '@/types/petProfile/client';

import { getGenderImage, getPetAge } from './PetItem';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { styled } from 'styled-components';
import CameraIcon from '@/assets/svg/camera_icon.svg';
import DefaultDogIcon from '@/assets/svg/dog_icon.svg';
import { usePetAdditionContext } from '@/context/petProfile/PetAdditionContext';
import { useImageUpload } from '@/hooks/common/useImageUpload';
import { useImageUpload } from '@/hooks/@common/useImageUpload';

const PetProfileImageUploader = () => {
const { petProfile, updatePetProfile } = usePetAdditionContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled, { css } from 'styled-components';

import { REVIEW_ALIGN_QUERY } from '@/constants/review';
import useEasyNavigate from '@/hooks/@common/useEasyNavigate';
import useValidQueryString from '@/hooks/common/useValidQueryString';
import useValidQueryString from '@/hooks/@common/useValidQueryString';
import { useReviewListAlignMeta } from '@/hooks/query/review';
import { generateQueryString } from '@/router/routes';
import { StyledProps } from '@/types/common/utility';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { styled } from 'styled-components';

import WriteIcon from '@/assets/svg/write_btn.svg';
import { useValidParams } from '@/hooks/@common/useValidParams';
import useValidQueryString from '@/hooks/common/useValidQueryString';
import useValidQueryString from '@/hooks/@common/useValidQueryString';
import { useReviewListQuery } from '@/hooks/query/review';
import { routerPath } from '@/router/routes';
import { zipgoLocalStorage } from '@/utils/localStorage';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion frontend/src/hooks/food/useFilterSelectionDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { generateQueryString } from '@/router/routes';
import { KeywordEn } from '@/types/food/client';

import useEasyNavigate from '../@common/useEasyNavigate';
import useValidQueryString from '../common/useValidQueryString';
import useValidQueryString from '../@common/useValidQueryString';

export const useFilterSelectionDisplay = () => {
const { replaceQueryString } = useEasyNavigate();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/food/useInfiniteFoodListScroll.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useRef } from 'react';

import { KEYWORD_EN } from '@/constants/food';
import useValidQueryString from '@/hooks/common/useValidQueryString';
import useValidQueryString from '@/hooks/@common/useValidQueryString';
import { useFoodListInfiniteQuery } from '@/hooks/query/food';
import type { KeywordEn } from '@/types/food/client';

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/review/useCustomReview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { usePetProfile } from '@/context/petProfile/PetProfileContext';
import { generateQueryString } from '@/router/routes';

import useEasyNavigate from '../@common/useEasyNavigate';
import useValidQueryString from '../common/useValidQueryString';
import useValidQueryString from '../@common/useValidQueryString';

export const useCustomReview = () => {
const { replaceQueryString } = useEasyNavigate();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/review/useReviewFilterList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FilterControlsMeta } from '@/types/review/client';
import { invariantOf } from '@/utils/invariantOf';
import { parseCheckList } from '@/utils/parseCheckList';

import useValidQueryString from '../common/useValidQueryString';
import useValidQueryString from '../@common/useValidQueryString';

const initialFilterList: Record<keyof FilterControlsMeta, Set<number>> = {
petSizes: new Set(),
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import ZipgoLogo from '@/assets/svg/zipgo_logo_dark.svg';
import ZipgoBanner from '@/assets/webp/landing_banner.webp';
import Template from '@/components/@common/Template';
import { KAKAO_HREF } from '@/constants/auth';
import useValidQueryString from '@/hooks/@common/useValidQueryString';
import { useAuth } from '@/hooks/auth';
import useValidQueryString from '@/hooks/common/useValidQueryString';
import { RuntimeError } from '@/utils/errors';

const Login = () => {
Expand Down

0 comments on commit 1f34dcb

Please sign in to comment.