diff --git a/src/Router.tsx b/src/Router.tsx index 4507d84..8f2f9fd 100644 --- a/src/Router.tsx +++ b/src/Router.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { createBrowserRouter, redirect, diff --git a/src/api/user.ts b/src/api/user.ts index dd21fcb..990361a 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -3,9 +3,9 @@ import { TokenProviderType } from '@src/types/user'; import { InitUserType } from '@src/pages/Auth/components/Init/index.d'; import { NewProfileType } from '@src/pages/Mypage/index.d'; import { AuthType } from '@src/types/data'; -import img0 from '../asset/images/profiles/initProfile0.png'; -import img1 from '../asset/images/profiles/initProfile1.png'; -import img2 from '../asset/images/profiles/initProfile2.png'; +import img0 from '@src/asset/images/profiles/initProfile0.png'; +import img1 from '@src/asset/images/profiles/initProfile1.png'; +import img2 from '@src/asset/images/profiles/initProfile2.png'; import jigumeAxios from './axios'; const initProfiles = [img0, img1, img2]; @@ -56,7 +56,7 @@ export const handleRefreshToken = async (auth: AuthType) => { */ export const codeProvide = async ( code: string | null, - domain: string + domain?: string ): Promise => { /** @type {string} */ if (!code) throw Error('인가코드가 옳바르지 않습니다.'); diff --git a/src/components/InputWithNum.tsx b/src/components/InputWithNum.tsx index 9c6df47..a7daa06 100644 --- a/src/components/InputWithNum.tsx +++ b/src/components/InputWithNum.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { InputWithNumType } from '.'; export default function InputWithNum({ diff --git a/src/components/LoadingButton.tsx b/src/components/LoadingButton.tsx index f789261..81a2ba1 100644 --- a/src/components/LoadingButton.tsx +++ b/src/components/LoadingButton.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - export default function LoadingButton() { return (