From a74f6896b97dea2e05af0a3499738a5b5f4eed93 Mon Sep 17 00:00:00 2001 From: minkyung00 Date: Fri, 10 Feb 2023 17:21:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A0=84=EC=B2=B4=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=20=EB=AA=A9=EB=A1=9D=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/paths.ts | 5 ++++- src/pages/Class/hooks/useClassProblemListTable.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/constants/paths.ts b/src/constants/paths.ts index 32a478e..ae68bc9 100644 --- a/src/constants/paths.ts +++ b/src/constants/paths.ts @@ -21,8 +21,10 @@ export const SUB_PATH = { LEADERBOARD: 'leaderboard', SUBMISSON: 'submission', - PROBLEM: ':problemId', + PROBLEM: 'all-problems/:problemId', PROBLEM_CREATE: ':contestId/create', + PROBLEM_EDIT_LIST: ':contestId/edit', + PROBLEM_EDIT: ':contestId/edit/:problemId', ALL_PROBLEMS: 'all-problems', ALL_CLASSES: 'all-classes', ANNOUNCEMENTS: 'announcements', @@ -33,6 +35,7 @@ export const SUB_PATH = { CONTEST: 'contest', CONTEST_DETAIL: ':contestId', CONTEST_PROBLEM: ':contestId/:contestProblemId', + CONTEST_PROBLEM_EDIT: ':contestId/:problemId/edit', CONTEST_LIST_EDIT: 'edit', }; diff --git a/src/pages/Class/hooks/useClassProblemListTable.tsx b/src/pages/Class/hooks/useClassProblemListTable.tsx index db2ae36..0506f5b 100644 --- a/src/pages/Class/hooks/useClassProblemListTable.tsx +++ b/src/pages/Class/hooks/useClassProblemListTable.tsx @@ -57,7 +57,7 @@ export const useClassProblemListTable = (keyword: string) => { e: React.MouseEvent, id: number | string ) => { - navigate(`../${id}`); + navigate(`${id}`); }; return {