Skip to content

Commit

Permalink
fix: 전체 문제 목록 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
newminkyung committed Feb 10, 2023
1 parent b25b896 commit a74f689
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/constants/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Class/hooks/useClassProblemListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const useClassProblemListTable = (keyword: string) => {
e: React.MouseEvent<HTMLTableRowElement, MouseEvent>,
id: number | string
) => {
navigate(`../${id}`);
navigate(`${id}`);
};

return {
Expand Down

0 comments on commit a74f689

Please sign in to comment.