Skip to content

Conversation

@Yun-Jinwoo
Copy link
Collaborator

📌 변경 사항 개요

  • 각 페이지 컴포넌트 생성
  • 라우팅 설정

📝 상세 내용

  • 각 페이지 컴포넌트 생성

    • 로그인 | /login | Login
    • 회원가입 | /signup | Signup
    • 내 가게 정보 상세 (사장님) | /owner/store | Store
    • 내 가게 정보 등록/편집 (사장님) | /owner/store/edit | StoreEdit
    • 내 가게 공고 등록 (사장님) | /owner/post | StoreForm
    • 내 가게 공고 상세 (사장님) | /owner/post/:id | StorePost
    • 내 프로필 상세 (알바님) | /profile | Profile
    • 내 프로필 등록/편집 (알바님) | /profile/edit | ProfileForm
    • 공고 리스트 | / | PostList
    • 공고 상세 | /posts/:id | Post
  • 라우팅 설정

    • App.tsx에서 라우팅 설정

🔗 관련 이슈

💡 참고 사항

경로나 컴포넌트명 수정이 필요하시면 팀원분께 말씀해주신 뒤 노션 및 이슈에서 수정 후 사용 부탁드립니다~!

@Yun-Jinwoo Yun-Jinwoo requested review from a user, Moon-ju-young and minimo-9 June 7, 2025 04:47
@Yun-Jinwoo Yun-Jinwoo self-assigned this Jun 7, 2025
@Yun-Jinwoo Yun-Jinwoo added the ✨ 기능 추가/구현 새로운 기능을 추가하거나 구현했어요! label Jun 7, 2025
@Yun-Jinwoo Yun-Jinwoo linked an issue Jun 7, 2025 that may be closed by this pull request
10 tasks
@Yun-Jinwoo Yun-Jinwoo added 📁 폴더구조 변경 폴더를 새로 생성하거나 기존 구조를 변경했어요! 🐛 버그 수정 코드를 수정하거나 예상치 못한 버그를 고쳤어요! labels Jun 7, 2025
@Yun-Jinwoo Yun-Jinwoo removed a link to an issue Jun 7, 2025
10 tasks
src/App.tsx Outdated
Comment on lines 23 to 24
<Route path="/profile" element={<Profile />} />
<Route path="/profile/edit" element={<ProfileForm />} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<Route path="/profile" element={<Profile />} />
<Route path="/profile/edit" element={<ProfileForm />} />
<Route path="/profile">
<Route index element={<Profile />} />
<Route path="edit" element={<ProfileForm />} />
</Route>

하위 경로가 있는 경우 다음과 같이 표기하는 게 좋지 않을까 싶네요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아하 감사합니다 수정해보겠습니다!

src/App.tsx Outdated
Comment on lines 16 to 25
<Route path="/" element={<PostList />} />
<Route path="/login" element={<Login />} />
<Route path="/signup" element={<Signup />} />
<Route path="/owner/store" element={<Store />} />
<Route path="/owner/store/edit" element={<StoreEdit />} />
<Route path="/owner/post" element={<StoreForm />} />
<Route path="/owner/post/:id" element={<StorePost />} />
<Route path="/profile" element={<Profile />} />
<Route path="/profile/edit" element={<ProfileForm />} />
<Route path="/post/:id" element={<Post />} />
Copy link
Contributor

Choose a reason for hiding this comment

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

경로를 작성할 때 가장 앞의 /는 필요없지 않나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

엇 앞에 / 필요하다고 배우긴 했는데 한번 생략해도 되는지 적용해보겠습니다

Copy link
Collaborator

Choose a reason for hiding this comment

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

찾아보니까 상대경로냐, 아님 절대 경로냐에 따라서 /를 붙일지 정해진다고합니다.

Copy link
Contributor

@Moon-ju-young Moon-ju-young left a comment

Choose a reason for hiding this comment

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

공고 리스트 경로가 /으로 바뀌었다면 공고 상세 페이지 경로도 /post/:id가 아니라 그냥 `/:id가 좋지 않을까 싶네요?

@Yun-Jinwoo
Copy link
Collaborator Author

공고 리스트 경로가 /으로 바뀌었다면 공고 상세 페이지 경로도 /post/:id가 아니라 그냥 `/:id가 좋지 않을까 싶네요?

저희가 나중에 랜딩페이지를 추가하게 된다면 해당 페이지가 / 가 될 것 같고, 공고 리스트가 /post가 될 것 같아서 우선 이렇게 두긴했는데, 그럼 지금은 /:id 로 해두겠습니다~!

Copy link
Collaborator

@minimo-9 minimo-9 left a comment

Choose a reason for hiding this comment

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

수정 잘해주셨네요! 굿입니다

src/App.tsx Outdated
Comment on lines 16 to 25
<Route path="/" element={<PostList />} />
<Route path="/login" element={<Login />} />
<Route path="/signup" element={<Signup />} />
<Route path="/owner/store" element={<Store />} />
<Route path="/owner/store/edit" element={<StoreEdit />} />
<Route path="/owner/post" element={<StoreForm />} />
<Route path="/owner/post/:id" element={<StorePost />} />
<Route path="/profile" element={<Profile />} />
<Route path="/profile/edit" element={<ProfileForm />} />
<Route path="/post/:id" element={<Post />} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

찾아보니까 상대경로냐, 아님 절대 경로냐에 따라서 /를 붙일지 정해진다고합니다.

@Yun-Jinwoo Yun-Jinwoo merged commit c528619 into develop Jun 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ 기능 추가/구현 새로운 기능을 추가하거나 구현했어요! 🐛 버그 수정 코드를 수정하거나 예상치 못한 버그를 고쳤어요! 📁 폴더구조 변경 폴더를 새로 생성하거나 기존 구조를 변경했어요!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants