Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[소그룹스터디] 경로를 static으로 변경 #418

Merged
merged 8 commits into from
Sep 16, 2024

Conversation

kimeodml
Copy link
Contributor

  • Close #ISSUE_NUMBER

What is this PR? 🔍

  • 기능 : 모든 경로를 static으로 변경
  • issue : #

Changes 📝

  • static 폴더 내의 routes.ts 에서 모든 경로를 관리하는 것으로 변경하였습니다.
  • 추후에 페이지 추가 시 static에서 관리해주면 되겠습니다.

ScreenShot 📷

Test CheckList ✅

  • 페이지 이동이 오류 없이 잘 되는지 확인
  • static으로 관리되지 않고 있는 경로가 있는지 확인

Precaution

✔️ Please check if the PR fulfills these requirements

  • It's submitted to the correct branch, not the develop branch unconditionally?
  • If on a hotfix branch, ensure it targets main?
  • There are no warning message when you run yarn lint

@kimeodml kimeodml changed the title [소규모 스터디] 경로를 static으로 변경 [소그룹스터디] 경로를 static으로 변경 Aug 12, 2024
@@ -43,7 +44,7 @@ function HotPost() {
hotArticleList.map((hotPost: HotPostResponse, index: number) => (
<Link
className={styles.hotpost__content}
to={`/board/notice/${hotPost.id}`}
to={`${ROUTES.BOARD_NOTICE_DETAIL.replace(':id', String(hotPost.id))}`}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

route를 함수로 바꿔쓰는건 어떻까용?
인터페이스가 꽤나 불편해보여용

Routes.BoardNoticeDetail({id: hotPost.id})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구조 개편 완료했습니다. caeeac7

AuthModifyInfo: '/auth/modifyinfo',
Review: {
path: 'review/:id',
general: (id: string) => `/review/${id}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2개 이상의 path를 쓰는 경우를 대비해서 객체로 받는건 어떨까욤

Copy link
Contributor

@daepan daepan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다.
원빈이가 지적해준 내용들 다 처리가 된건가요??

@kimeodml
Copy link
Contributor Author

확장성 있게 변경했습니다~

@kimeodml kimeodml merged commit ed7e61c into develop Sep 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants