-
Notifications
You must be signed in to change notification settings - Fork 1
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 연동 #57
Conversation
- 직업 목록에 '기타' 추가 - 종료하기 클릭 시 자기이해 홈으로 이동
const [showAmountModal, setShowAmountModal] = useState<boolean>(false); | ||
const [selectedAmount, setSelectedAmount] = useState<{ min: number; max: number }>({ | ||
min: 0, | ||
max: 0, | ||
}); |
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.
showAmountModal
: 모달창 띄울지 말지 결정하는 state
selectedAmount
: 선택한 금액 범위 저장하는 state
const getUnderstandProgram = async () => { | ||
// 이거 로직 문제 있음. min보다 max가 작은 케이스. | ||
try { | ||
const response = await programAPI.getUnderstanding( | ||
selectedAmount.min, | ||
selectedAmount.max, | ||
selectedProgramForm | ||
); | ||
setSelfUnderstandProgram(response.payload); | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
}; |
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.
아직 미완. 이런식으로 필터값 넘길 예정
{showAmountModal && ( | ||
<SelectAmountModal | ||
selectedAmount={selectedAmount} | ||
handleCancel={() => { | ||
setShowAmountModal(false); | ||
}} | ||
handleConfirm={(newSelected) => { | ||
setSelectedAmount(newSelected); | ||
setShowAmountModal(false); | ||
}} | ||
/> | ||
)} |
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.
오버레이 & 전체적인 틀만 잡아주는 모달 템플릿
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.
금액 선택 모달
- 더미데이터 삭제 - 브랜딩 프로그램 api 호출
- 설계하기 결과화면 definition 디자인 수정
- 키워드 수정
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️⃣ 요약
2️⃣ 변경사항
기존 코드에 영향을 미치는 변경사항
기존 코드에 영향을 미치지 않는 변경사항
버그 수정을 위한 변경사항
3️⃣ 참고사항
4️⃣ 추후 작업
5️⃣ 리뷰 요구사항