issue # 라우팅 이슈 수정
This commit is contained in:
@@ -18,7 +18,7 @@ function App() {
|
|||||||
<Route element={<Layout />}>
|
<Route element={<Layout />}>
|
||||||
<Route element={<LoginPage />} path={PageRouting["LOGIN"].path} />
|
<Route element={<LoginPage />} path={PageRouting["LOGIN"].path} />
|
||||||
<Route element={<SignUpPage />} path={PageRouting["SIGN_UP"].path} />
|
<Route element={<SignUpPage />} path={PageRouting["SIGN_UP"].path} />
|
||||||
{!(authData?.isLogedIn) ? <Route element={<Navigate to={`/${PageRouting["LOGIN"].path}`} />} path="*" /> : null}
|
{!(authData?.isLogedIn) ? <Route element={<Navigate to={PageRouting["LOGIN"].path} />} path="*" /> : null}
|
||||||
</Route>
|
</Route>
|
||||||
</Routes>
|
</Routes>
|
||||||
</Router>
|
</Router>
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ type PageRoutingInfo = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const PageRouting: Record<string, PageRoutingInfo> = {
|
export const PageRouting: Record<string, PageRoutingInfo> = {
|
||||||
LOGIN: { path: "login", title: "" },
|
LOGIN: { path: "/login", title: "" },
|
||||||
SIGN_UP: { path: "signup", title: "" },
|
SIGN_UP: { path: "/signup", title: "" },
|
||||||
RESET_PASSWORD: { path: "reset-password", title: "" },
|
RESET_PASSWORD: { path: "/reset-password", title: "" },
|
||||||
HOME: { path: "home", title: "홈" },
|
HOME: { path: "/home", title: "홈" },
|
||||||
SCHEDULES: { path: "schedules", title: "일정" },
|
SCHEDULES: { path: "/schedules", title: "일정" },
|
||||||
SCHEDULES_NEW: { path: "schedules/new", title: "일정 생성" },
|
SCHEDULES_NEW: { path: "/schedules/new", title: "일정 생성" },
|
||||||
SCHEDULES_EDIT: { path: "schedules/edit", title: "일정 수정" },
|
SCHEDULES_EDIT: { path: "/schedules/edit", title: "일정 수정" },
|
||||||
SCHEDULES_DETAIL: { path: "schedules/detail", title: "일정 상세" },
|
SCHEDULES_DETAIL: { path: "/schedules/detail", title: "일정 상세" },
|
||||||
USER_INFO: { path: "info", title: "사용자 정보" },
|
USER_INFO: { path: "/info", title: "사용자 정보" },
|
||||||
USER_FOLLOWING: { path: "info/following", title: "팔로잉 목록" },
|
USER_FOLLOWING: { path: "/info/following", title: "팔로잉 목록" },
|
||||||
USER_FOLLOWER: { path: "info/follower", title: "팔로워 목록" },
|
USER_FOLLOWER: { path: "/info/follower", title: "팔로워 목록" },
|
||||||
SETTINGS: { path: "settings", title: "설정" },
|
SETTINGS: { path: "/settings", title: "설정" },
|
||||||
NOT_FOUD: { path: "not-found", title: "존재하지 않는 페이지" },
|
NOT_FOUD: { path: "/not-found", title: "존재하지 않는 페이지" },
|
||||||
} as const;
|
} as const;
|
||||||
@@ -70,12 +70,18 @@ export default function LoginPage() {
|
|||||||
</form>
|
</form>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardFooter
|
<CardFooter
|
||||||
className="w-full flex flex-row items-end justify-center gap-[5px]"
|
className="w-full flex flex-col items-center justify-between gap-[5px]"
|
||||||
>
|
>
|
||||||
<Button type="submit" form="form-login">
|
<Button
|
||||||
|
className="w-full"
|
||||||
|
type="submit"
|
||||||
|
form="form-login">
|
||||||
로그인
|
로그인
|
||||||
</Button>
|
</Button>
|
||||||
<Button>
|
<Button
|
||||||
|
className="w-full bg-white border-2 text-black hover:bg-gray-100"
|
||||||
|
onClick={moveToSignUpPage}
|
||||||
|
>
|
||||||
회원가입
|
회원가입
|
||||||
</Button>
|
</Button>
|
||||||
</CardFooter>
|
</CardFooter>
|
||||||
|
|||||||
Reference in New Issue
Block a user