Commit f299336a authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

컴포넌트 이름 변경

parent e4aab5a2
...@@ -3,17 +3,18 @@ import { BrowserRouter, Route, Routes } from "react-router-dom"; ...@@ -3,17 +3,18 @@ import { BrowserRouter, Route, Routes } from "react-router-dom";
import { Login, SignUp, RequireAuth } from "./auth"; import { Login, SignUp, RequireAuth } from "./auth";
import { NotFound } from "./commons"; import { NotFound } from "./commons";
import { import {
Profile,
CreateSurvey, CreateSurvey,
Preview,
EditSurvey, EditSurvey,
AnswerSurvey, AnswerSurvey,
ResultSurvey, ResultSurvey,
SurveysList,
AnswerPreview,
} from "./surveys"; } from "./surveys";
import { import {
AnswerLayout, AnswerLayout,
BaseLayout, BaseLayout,
ModifyLayout, SurveyLayout,
SurveysLayout,
ResultLayout, ResultLayout,
} from "./layouts"; } from "./layouts";
import { Home } from "./home"; import { Home } from "./home";
...@@ -37,14 +38,17 @@ export const MainRouter = () => { ...@@ -37,14 +38,17 @@ export const MainRouter = () => {
path="/surveys" path="/surveys"
element={ element={
<RequireAuth> <RequireAuth>
<ModifyLayout /> <SurveysLayout />
</RequireAuth> </RequireAuth>
} }
> >
<Route index element={<SurveysList />} />
<Route path="create" element={<CreateSurvey />} /> <Route path="create" element={<CreateSurvey />} />
<Route path="profile" element={<Profile />} /> <Route path=":surveyId" element={<SurveyLayout />}>
<Route path=":surveyId" element={<Preview />} /> <Route index element={<AnswerPreview />} />
<Route path=":surveyId/edit" element={<EditSurvey />} /> <Route path="edit" element={<EditSurvey />} />
<Route path="result" element={<ResultSurvey />} />
</Route>
</Route> </Route>
<Route path="*" element={<NotFound />} /> <Route path="*" element={<NotFound />} />
</Route> </Route>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment