From 56456bcbabf237ebc79b45ef1ca2c695cdefa5e6 Mon Sep 17 00:00:00 2001 From: sangminlee98 Date: Thu, 7 Dec 2023 20:23:59 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EB=A7=A4=EB=AC=BC=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=EB=B3=80=EA=B2=BD=20=EB=AA=A8=EB=8B=AC=20=EC=A0=84?= =?UTF-8?q?=ED=99=94=EB=B2=88=ED=98=B8=20=EC=9C=A0=ED=9A=A8=EC=84=B1=20?= =?UTF-8?q?=EA=B2=80=EC=82=AC=20=EC=A0=95=EA=B7=9C=ED=91=9C=ED=98=84?= =?UTF-8?q?=EC=8B=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MyPage/DealStateModal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MyPage/DealStateModal/index.tsx b/src/components/MyPage/DealStateModal/index.tsx index 8b08c34..fd89705 100644 --- a/src/components/MyPage/DealStateModal/index.tsx +++ b/src/components/MyPage/DealStateModal/index.tsx @@ -80,7 +80,7 @@ export default function DealStateModal({ alert('필수 항목을 입력해주세요.'); return; } - if (!contact.match(/(\d{2,3}-\d{3,4}-\d{4})$/g)) { + if (!contact.match(/^(\d{2,3}\d{3,4}\d{4})$/g)) { alert('전화번호 형식이 맞지 않습니다.'); return; } From 072523adbcf69d0c39f782b84e228811954e44ab Mon Sep 17 00:00:00 2001 From: sangminlee98 Date: Thu, 7 Dec 2023 20:25:48 +0900 Subject: [PATCH 2/2] =?UTF-8?q?style:=20Route.tsx=20import=20order=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Routes.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Routes.tsx b/src/Routes.tsx index 112ccac..5a94a1e 100644 --- a/src/Routes.tsx +++ b/src/Routes.tsx @@ -1,17 +1,16 @@ import { lazy } from 'react'; import { RouteObject } from 'react-router-dom'; import GlobalLayout from '@/pages/_layout'; +import MyPage from './pages/Mypage'; import MyCommentsPage from './pages/Mypage/community/comments'; import MyLikesPage from './pages/Mypage/community/likes'; -import MyPage from './pages/Mypage'; import MyWritePage from './pages/Mypage/community/write'; import MyHomePage from './pages/Mypage/home'; import MySelfPage from './pages/Mypage/trade/myself'; import MySavesPage from './pages/Mypage/trade/saves'; import MyScrapPage from './pages/Mypage/trade/scrap'; - const MainPage = lazy(() => import('@/pages/Main')); const LoginPage = lazy(() => import('@/pages/Login')); const SignUpPage = lazy(() => import('@/pages/SignUp'));