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

UserMatchingPage 리팩토링 #150

Merged
merged 6 commits into from
Dec 18, 2020

Conversation

GrasshopperBears
Copy link
Collaborator

해당 이슈 📎

#95

변경 사항 🛠

  • onClickHanlder를 취소 버튼 컴포넌트로 이동
  • request state를 제거
  • startTime을 state가 아닌 ref로 관리
  • 택시 정보 컴포넌트를 React.memo로 래핑

테스트 ✨

없음

리뷰어 참고 사항 🙋‍♀️

  • 팀원에게 하고 싶은 말

- onClickHanlder를 MatchingCancelButton으로 이동
- 유저 매칭 페이지에서 불필요한 비동기 처리 제거
- 예상 요금에 toLocaleString 적용
- pathPoint를 Request로 바꿔주는 함수 분리
- request를 state에서 제거
- startTime을 state 대신 ref로 상태 관리
- taxiInfo가 변경될 일이 없기 때문에 useMemo로 래핑
Copy link
Contributor

@ahnsoheee ahnsoheee left a comment

Choose a reason for hiding this comment

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

수고많으셨습니다 진우님^^

@@ -18,7 +18,7 @@ const PreRequestData: React.FC<PreRequestDataPropsType> = ({ time, fee }) => {
</Div>
<Div>
<p>예상요금</p>
<P>{fee}원</P>
<P>{fee.toLocaleString()}원</P>
Copy link
Contributor

Choose a reason for hiding this comment

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

디테일 😉

@GrasshopperBears GrasshopperBears merged commit 9eb2aec into refactor/merge Dec 18, 2020
@GrasshopperBears GrasshopperBears deleted the refactor/user-matching-page branch December 18, 2020 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants