Skip to content

Commit

Permalink
Chore: #118 import 경로 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoonyesol committed Sep 10, 2024
1 parent 0bba474 commit b11ea49
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 30 deletions.
21 changes: 0 additions & 21 deletions src/hooks/query/useUserInfoQuery.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/mocks/services/authServiceHandler.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Cookies from 'js-cookie';
import { http, HttpResponse } from 'msw';
import { AUTH_SETTINGS } from '@constants/settings';
import { USER_INFO_DUMMY } from '@mocks/mockData';
import { UserSignInForm } from '@/types/UserType';
import { USER_INFO_DUMMY } from '../mockData';

const BASE_URL = import.meta.env.VITE_BASE_URL;
const refreshTokenExpiryDate = new Date(Date.now() + AUTH_SETTINGS.REFRESH_TOKEN_EXPIRATION).toISOString();
Expand Down
6 changes: 3 additions & 3 deletions src/pages/setting/UserSettingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { FormProvider, useForm } from 'react-hook-form';
import { USER_INFO_DUMMY } from '@mocks/mockData';
import { USER_AUTH_VALIDATION_RULES } from '@constants/formValidationRules';
import ValidationInput from '@components/common/ValidationInput';
import ProfileImageContainer from '@/components/user/auth-form/ProfileImageContainer';
import LinkContainer from '@/components/user/auth-form/LinkContainer';
import type { EditUserInfoForm } from '@/types/UserType';
import ProfileImageContainer from '@components/user/auth-form/ProfileImageContainer';
import LinkContainer from '@components/user/auth-form/LinkContainer';
import { useUserStore } from '@/stores/useUserStore';
import type { EditUserInfoForm } from '@/types/UserType';

export default function UserSettingPage() {
const userInfoData = useUserStore((state) => state.userInfo);
Expand Down
8 changes: 4 additions & 4 deletions src/pages/user/SignInPage.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { useForm } from 'react-hook-form';
import { useNavigate } from 'react-router-dom';
import { AxiosError } from 'axios';
import Kakao from '@assets/social_kakao_icon.svg';
import Google from '@assets/social_google_icon.svg';
import ValidationInput from '@components/common/ValidationInput';
import { USER_AUTH_VALIDATION_RULES } from '@constants/formValidationRules';
import FooterLinks from '@components/user/auth-form/FooterLinks';
import AuthFormLayout from '@layouts/AuthFormLayout';
import { useNavigate } from 'react-router-dom';
import { AxiosError } from 'axios';
import { USER_AUTH_VALIDATION_RULES } from '@constants/formValidationRules';
import useToast from '@hooks/useToast';
import { getUserInfo, login } from '@services/authService';
import type { UserSignInForm } from '@/types/UserType';
import { useAuthStore } from '@/stores/useAuthStore';
import { useUserStore } from '@/stores/useUserStore';
import type { UserSignInForm } from '@/types/UserType';

export default function SignInPage() {
const { onLogin } = useAuthStore();
Expand Down
1 change: 0 additions & 1 deletion src/stores/useUserStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/prefer-default-export */
import { create } from 'zustand';
import { persist, createJSONStorage } from 'zustand/middleware';
import { decrypt, encrypt } from '@utils/cryptoHelper';
Expand Down

0 comments on commit b11ea49

Please sign in to comment.