diff --git a/src/Routes.tsx b/src/Routes.tsx index 6f5968d..ba306e4 100644 --- a/src/Routes.tsx +++ b/src/Routes.tsx @@ -1,20 +1,20 @@ 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 MyPage from './pages/MyPage'; +import MyCommentsPage from './pages/MyPage/community/comments'; -import MyLikesPage from './pages/Mypage/community/likes'; -import MyWritePage from './pages/Mypage/community/write'; -import MyHomePage from './pages/Mypage/home'; -import MySettingsPage from './pages/Mypage/setting'; -import CertificateMember from './pages/Mypage/setting/CertificateMember'; -import EditMember from './pages/Mypage/setting/EditMember'; -import EditPassword from './pages/Mypage/setting/EditPassword'; -import WithdrawalFromMembership from './pages/Mypage/setting/WithdrawalFromMembership'; -import MySelfPage from './pages/Mypage/trade/myself'; -import MySavesPage from './pages/Mypage/trade/saves'; -import MyScrapPage from './pages/Mypage/trade/scrap'; +import MyLikesPage from './pages/MyPage/community/likes'; +import MyWritePage from './pages/MyPage/community/write'; +import MyHomePage from './pages/MyPage/home'; +import MySettingsPage from './pages/MyPage/setting'; +import CertificateMember from './pages/MyPage/setting/CertificateMember'; +import EditMember from './pages/MyPage/setting/EditMember'; +import EditPassword from './pages/MyPage/setting/EditPassword'; +import WithdrawalFromMembership from './pages/MyPage/setting/WithdrawalFromMembership'; +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')); @@ -43,7 +43,7 @@ export const routes: RouteObject[] = [ { path: 'signup', element: }, { path: 'agentSignup', element: }, { - path: 'mypage', + path: 'myPage', element: , children: [ { diff --git a/src/components/Trade/Quill/index.tsx b/src/components/Trade/Quill/index.tsx index 9d69ddf..69dc12d 100644 --- a/src/components/Trade/Quill/index.tsx +++ b/src/components/Trade/Quill/index.tsx @@ -72,7 +72,10 @@ export default function TradeQuill({ }; if (!isTempSave) { - if (!checkBeforeTradePost(user!, newForm)) return; + if (!checkBeforeTradePost(user!, newForm)) { + setIsProcessing(false); + return; + } } try { diff --git a/src/pages/Trade/Write/index.tsx b/src/pages/Trade/Write/index.tsx index 468fea1..28b27aa 100644 --- a/src/pages/Trade/Write/index.tsx +++ b/src/pages/Trade/Write/index.tsx @@ -30,6 +30,7 @@ export default function TradeWritePage() { rentalType: state ? state.data.rentalType : 'SALE', city: state ? state.data.city : '', zipCode: state ? state.data.zipCode : '', + detail: state ? state.data.detail : '', size: state ? state.data.size : '', purpose: state ? state.data.purpose : '', floorNum: state ? state.data.floorNum : 0, @@ -203,14 +204,25 @@ export default function TradeWritePage() { 우편번호 +
+ + +