Skip to content

Commit

Permalink
feat(volunteer): 봉사 후기 작성 및 수정 페이지 라우팅 수정 (#196)
Browse files Browse the repository at this point in the history
* feat(volunteer): 리뷰 작성 및 수정 페이지 경로 수정

* feat(volunteer): 리뷰 작성 및 수정 페이지에서 useParams 를 통해 아이디 가져오는 기능 추가
  • Loading branch information
kutta97 authored Nov 28, 2023
1 parent b001692 commit 1cb8c87
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/volunteer/src/constants/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const PATH = {
SHELTERS: {
INDEX: 'shelters',
PROFILE: 'profile/:id',
REVIEWS_WRITE: 'reviews/write',
REVIEWS_UPDATE: 'reviews/write/:id',
REVIEWS_WRITE: ':shelterId/reviews/applicants/:applicantId/write',
REVIEWS_UPDATE: ':shelterId/reviews/write/:reviewId',
},
NOTIFICATIONS: 'notifications',
SIGNUP: 'signup',
Expand Down
5 changes: 5 additions & 0 deletions apps/volunteer/src/pages/shelters/reviews/update/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { useParams } from 'react-router-dom';

export default function SheltersReviewsUpdatePage() {
const { shelterId, reviewId } = useParams();
console.log(shelterId, reviewId);

return <h1>SheltersReviewsUpdatePage</h1>;
}
5 changes: 5 additions & 0 deletions apps/volunteer/src/pages/shelters/reviews/write/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { useParams } from 'react-router-dom';

export default function SheltersReviewsWritePage() {
const { shelterId, applicantId } = useParams();
console.log(shelterId, applicantId);

return <h1>SheltersReviewsWritePage</h1>;
}

0 comments on commit 1cb8c87

Please sign in to comment.