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

[AUD-97] 새 코스 만들기 기능 구현 #57

Merged
merged 11 commits into from
Feb 28, 2024
Merged

Conversation

KimGaeun0806
Copy link
Member

@KimGaeun0806 KimGaeun0806 commented Feb 27, 2024

📃 변경사항

  • 새로운 코스 만들기 버튼 스타일 수정
  • 새로운 코스 만들기 기능 구현
    • 일단은 모달이 구현되기 전이라
    • 클릭했을 때 '새로운 코스' 라는 제목으로 새 코스가 만들어지고, 바로 그 코스로 진입하도록 했습니다.
  • course page의 뒤로가기 버튼 기능 추가
  • usePostSaveCourse hook 구현
  • postSaveCourseAsync에 userId를 파라미터로 추가
  • UserType의 userId 타입을 number로 변경

🫨 고민한 부분

  • usePostSaveCourse hook 부분
    • 혹시 잘못된게 있으면 코멘트 부탁드립니다

🎇 동작 화면

2024-02-28.2.38.12.mov

💫 기타사항 (optional)

  • useNavigate로 페이지 이동할 때 지도가 보이지 않는 문제가 있습니다.
  • 이 부분은 별도 PR로 분리해서 해결하도록 하겠습니다

@KimGaeun0806 KimGaeun0806 self-assigned this Feb 27, 2024
@KimGaeun0806 KimGaeun0806 marked this pull request as ready for review February 28, 2024 05:39
@RookieAND
Copy link
Collaborator

모달 PR Merge 이후 모달 제작하고, 이후에 해당 PR도 Merge 하면 될거 같습니다.

@KimGaeun0806
Copy link
Member Author

@RookieAND
넵 그럼 이 PR은 모달까지 넣은 후에 merge하도록 하겠습니다~

@@ -88,12 +88,14 @@ export const CourseRepository = {
},

async postSaveCourseAsync({
userId,
Copy link
Collaborator

Choose a reason for hiding this comment

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

userId 를 굳이 넣지 않아도 됩니다. DOCS 가 이상한거라고 하셔서요

Copy link
Member Author

Choose a reason for hiding this comment

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

앗 그렇군요 수정햐ㅏ겠습니다

@@ -88,12 +88,14 @@ export const CourseRepository = {
},

async postSaveCourseAsync({
userId,
courseName,
}: CourseRequestParamType['postSaveCourse']) {
return postAsync<
ApiResponseType<CourseResponseType['postSaveCourse']>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

postAsync 의 response 에서 data만 보내줘도 죌거 같아요

@KimGaeun0806
Copy link
Member Author

@RookieAND
만들어주신 모달 컴포넌트 사용해서
새로운 코스 만들기 버튼 클릭 -> 모달로 코스 이름 받기 -> 해당 코스로 진입
플로우로 진행되게 변경했습니다

이 친구도 마찬가지로 인풋디자인은 추후 수정 예정입니다~~
🤘(˙-˙) ̳ ̳ ̳ ̳ ͙

image

@KimGaeun0806 KimGaeun0806 merged commit 8eeea73 into develop Feb 28, 2024
1 check passed
@RookieAND RookieAND deleted the feature/AUD-97 branch February 29, 2024 16:21
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.

2 participants