-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feat: 모집글 작성 수정 페이지 api연동 제외 #154
The head ref may contain hidden characters: "feature/issue-147--Feat-\uBAA8\uC9D1\uAE00-\uC791\uC131-\uC218\uC815-\uD398\uC774\uC9C0-api\uC5F0\uB3D9-\uC81C\uC678"
Feat: 모집글 작성 수정 페이지 api연동 제외 #154
Conversation
- 모집글 작성, 모집글 수정 페이지 쿼리 셋팅 수정 및 관련 타입 오류 해결 - post api 관련 글 작성하기, 수정하기 함수 타입변경 - 드랍다운 관련 상수에 각 value 추가
- handleSubmit 함수에 모집글 작성 유효성 처리 기능 추가 (요청 처리 오류시 알림창, 스크롤 최상단으로 이동)
올바른 PR 형식올바른 PR 형식입니다. |
progressWay: "", | ||
stacks: [], | ||
progressPeriod: null, | ||
capacity: 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
시작 값이 10인 이유가 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
모집인원 관련 드랍다운 버튼에 선택을 아예 안했을 때와 인원 미정을 선택한 값이 null로 같아서
지금은 임시로 설정해 두었습니다 드랍다운 내부 수정해 놓겠습니다!-!
|
||
const findOptionByValue = <ValueType, OptionType>(values: ValueType[], options: OptionType[], value: ValueType) => { | ||
const index = values.indexOf(value); | ||
return options[index]; | ||
}; | ||
|
||
const handleSelectType = (type: string): void => { | ||
setSelectedOption((prevOptions) => ({ | ||
const handleSelectType = (type: "STUDY" | "PROJECT"): void => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CategoryList 로 변경해주세요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
변경했습니다!
@@ -1,5 +1,5 @@ | |||
export interface RecruitmentRequest { | |||
type: string; | |||
type: "STUDY" | "PROJECT"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요것도 바꿔주셔용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이부분.. 못보고 머지했네요ㅠ 다음에 pr올릴때 꼭 수정해서 올리겠습니다!
📌요구사항
📌작업 진행 상황 (에러, 막혔던 부분, 그외 궁금한것 등등)
이번에 작업하면서(쿼리셋팅, 요청처리)기술스택 부분에 오류가 있어서 나경님이랑 수정 해야할 것 같아
일단 주석 처리 하고 올리겠습니다
지금 리팩토링(리액트훅폼 컨트롤+드랍다운)을 하면 파일을 계속 옮겨 다니면서 작업해야 해서
api연동까지만 확인 되면 리팩토링 해 놓겠습니다 ㅠ
지금 constants/dropDowns에 드랍버튼의 text가 options에 있는 값이 아닌 다른 값으로 보여져야
하는 곳이 모집글 작성, 수정 페이지 외에도 생길 수 있어서 일단 value 다 추가해 놨습니다 기능구현 하시다
비슷한 문제가 발생하면 value를 참고해서 사용하시면 될 것 같습니다
링크 유효성 검사를 통과 못하면 글 작성이 안되는 걸까요..?-? 현재는 링크 입력창은 요청 조건에 넣진 않았습니다
필수 입력값을 안넣으면 또 스크롤해서 올라가는게 불편해서 알림창 띄우고 최상단으로 스크롤 가게 해놨는데
괜찮은지 확인 부탁 드립니다!!
📌스크린샷 / 테스트결과 (선택)
📌이슈 번호
close #147