Skip to content

Commit c13ec0b

Browse files
committed
chore: 일부 페이지 DefaultLayout으로 이동
- MarginLayout으로 이동된 페이지 DefaultLayout으로 원복 - MarginLayout deprecated 처리
1 parent 9026379 commit c13ec0b

File tree

2 files changed

+44
-39
lines changed

2 files changed

+44
-39
lines changed

src/App.jsx

Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -80,30 +80,50 @@ function App() {
8080

8181
{/* <Route path="list" element={<List />} /> */}
8282

83+
<Route path="signup" element={<SignUpDefault />} />
84+
<Route path="signup/success" element={<SignUpSuccess />} />
85+
<Route path="signin" element={<SignIn />} />
86+
<Route path="signin/v2" element={<SignInV2 />} />
87+
<Route path="signin/find/:id" element={<FindBar />} />
88+
89+
<Route path="list" element={<PostGallery />} />
90+
91+
<Route
92+
path="list/detail/:id"
93+
element={
94+
<Suspense fallback={<Loading />}>
95+
<Detail />
96+
</Suspense>
97+
}
98+
/>
99+
<Route
100+
path="list/view/:id"
101+
element={
102+
<Suspense fallback={<Loading />}>
103+
<PostView />
104+
</Suspense>
105+
}
106+
/>
107+
<Route path="list/review/:id" element={<ReviewWrite />} />
108+
<Route
109+
path="purchase/:id"
110+
element={<ProtectedRoute element={<Purchase />} />}
111+
/>
112+
113+
<Route
114+
path="mypage/liked"
115+
element={<ProtectedRoute element={<LikedWorks />} />}
116+
/>
117+
<Route
118+
path="mypage/purchased"
119+
element={<ProtectedRoute element={<PurchasedScript />} />}
120+
/>
121+
<Route
122+
path="mypage/scriptmanage"
123+
element={<ProtectedRoute element={<ScriptManage />} />}
124+
/>
125+
83126
<Route element={<MarginLayout />}>
84-
<Route path="signup" element={<SignUpDefault />} />
85-
<Route path="signup/success" element={<SignUpSuccess />} />
86-
<Route path="signin" element={<SignIn />} />
87-
<Route path="signin/v2" element={<SignInV2 />} />
88-
<Route path="signin/find/:id" element={<FindBar />} />
89-
<Route path="list" element={<PostGallery />} />
90-
<Route
91-
path="list/detail/:id"
92-
element={
93-
<Suspense fallback={<Loading />}>
94-
<Detail />
95-
</Suspense>
96-
}
97-
/>
98-
<Route
99-
path="list/view/:id"
100-
element={
101-
<Suspense fallback={<Loading />}>
102-
<PostView />
103-
</Suspense>
104-
}
105-
/>
106-
<Route path="list/review/:id" element={<ReviewWrite />} />
107127
<Route path="policy/:id" element={<PolicyBar />} />
108128

109129
<Route
@@ -114,10 +134,6 @@ function App() {
114134
path="purchase/abort"
115135
element={<ProtectedRoute element={<Abort />} />}
116136
/>
117-
<Route
118-
path="purchase/:id"
119-
element={<ProtectedRoute element={<Purchase />} />}
120-
/>
121137
<Route path="post" element={<PostWork />} />
122138
<Route
123139
path="mypage/purchased/performance-info/:id"
@@ -139,18 +155,6 @@ function App() {
139155
path="mypage/infochange"
140156
element={<ProtectedRoute element={<AccountInfoChange />} />}
141157
/>
142-
<Route
143-
path="mypage/scriptmanage"
144-
element={<ProtectedRoute element={<ScriptManage />} />}
145-
/>
146-
<Route
147-
path="mypage/liked"
148-
element={<ProtectedRoute element={<LikedWorks />} />}
149-
/>
150-
<Route
151-
path="mypage/purchased"
152-
element={<ProtectedRoute element={<PurchasedScript />} />}
153-
/>
154158
<Route path="/performedWork" element={<PerformedWork />} />
155159
<Route path="*" element={<NotFound />} />
156160
{/* 테스트용 routing */}

src/layouts/MarginLayout.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Outlet } from "react-router-dom";
22

33
import "./MarginLayout.scss";
44

5+
/** @deprecated */
56
const MarginLayout = () => {
67
return (
78
<div className="__margin-layout__">

0 commit comments

Comments
 (0)