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";
import { Login, SignUp, RequireAuth } from "./auth";
import { NotFound } from "./commons";
import {
Profile,
CreateSurvey,
Preview,
EditSurvey,
AnswerSurvey,
ResultSurvey,
SurveysList,
AnswerPreview,
} from "./surveys";
import {
AnswerLayout,
BaseLayout,
ModifyLayout,
SurveyLayout,
SurveysLayout,
ResultLayout,
} from "./layouts";
import { Home } from "./home";
......@@ -37,14 +38,17 @@ export const MainRouter = () => {
path="/surveys"
element={
<RequireAuth>
<ModifyLayout />
<SurveysLayout />
</RequireAuth>
}
>
<Route index element={<SurveysList />} />
<Route path="create" element={<CreateSurvey />} />
<Route path="profile" element={<Profile />} />
<Route path=":surveyId" element={<Preview />} />
<Route path=":surveyId/edit" element={<EditSurvey />} />
<Route path=":surveyId" element={<SurveyLayout />}>
<Route index element={<AnswerPreview />} />
<Route path="edit" element={<EditSurvey />} />
<Route path="result" element={<ResultSurvey />} />
</Route>
</Route>
<Route path="*" element={<NotFound />} />
</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