From d0920fbc6e2bd7345bd5e2f5cafe0d8892ea6edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EA=B2=BD?= Date: Fri, 19 Jan 2024 15:36:38 +0900 Subject: [PATCH] update components --- src/Router.tsx | 1 - src/api/user.ts | 8 ++++---- src/components/InputWithNum.tsx | 1 - src/components/LoadingButton.tsx | 2 -- src/components/NextButton.tsx | 2 -- src/components/OpenGraphViewer.tsx | 1 - .../StaticMapOnMarker.tsx} | 14 +++++++++----- src/components/StyledCountInput.tsx | 1 - src/components/StyledCurrencyInput.tsx | 1 - src/components/StyledInputText.tsx | 1 - src/components/StyledTextarea.tsx | 1 - src/pages/Announcement/components/Comments.tsx | 3 +-- .../Announcement/components/CommentsContent.tsx | 3 +-- .../Announcement/components/CommentsInput.tsx | 3 +-- .../Announcement/components/CommentsText.tsx | 2 -- .../Announcement/components/ProductAbout.tsx | 3 +-- src/pages/Announcement/components/User.tsx | 3 +-- src/pages/Announcement/index.tsx | 1 - .../Init/components/circularProgress.tsx | 2 -- .../Init/components/initAccessRights.tsx | 7 +++---- .../components/Init/components/initAddress.tsx | 4 ++-- .../Init/components/initProfileImage.tsx | 6 +++--- .../components/Init/components/initUser.tsx | 6 +++--- src/pages/Auth/components/Init/index.tsx | 2 +- src/pages/Auth/components/Refresh/index.tsx | 5 ++--- src/pages/Auth/components/login.tsx | 9 ++++----- src/pages/Auth/index.tsx | 5 ++--- .../Goods/components/CarouselBox/index.tsx | 1 - src/pages/Goods/components/IntroCategory.tsx | 1 - src/pages/Goods/components/PlaceInfo/index.tsx | 17 ++++++++++------- src/pages/Goods/components/ProductContent.tsx | 1 - src/pages/Goods/components/ProductInfo.tsx | 1 - src/pages/Goods/components/Submitted.tsx | 1 - .../components/CategoryTag.tsx | 1 - .../BottomSheetComponent/components/Fab.tsx | 1 - .../components/ItemComponent.tsx | 1 - .../components/ItemList.tsx | 1 - .../components/SheetHeader.tsx | 1 - src/pages/Map/components/CurrentPoint.tsx | 2 -- src/pages/Map/components/Loading.tsx | 2 -- src/pages/Mypage/components/MyPageHeader.tsx | 1 - src/pages/Mypage/components/ProgressJoin.tsx | 1 - src/pages/Mypage/components/ProgressLead.tsx | 2 -- src/pages/NotMatch.tsx | 1 - src/pages/Register/components/Cost/index.tsx | 1 - .../Register/components/Deadline/index.tsx | 1 - src/pages/Register/components/Detail/index.tsx | 1 - .../components/Image/components/ImageCard.tsx | 1 - src/pages/Register/components/Notice/index.tsx | 1 - src/pages/Register/components/Place/index.tsx | 1 - 50 files changed, 48 insertions(+), 91 deletions(-) rename src/{pages/Goods/components/PlaceInfo/components/IntroStaticMap.tsx => components/StaticMapOnMarker.tsx} (80%) 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 (