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

[FE] 지출 액션 수정, 삭제 기능 구현 #204

Closed
wants to merge 22 commits into from

Conversation

jinhokim98
Copy link
Contributor

@jinhokim98 jinhokim98 commented Aug 5, 2024

issue

구현 사항

기능 구현 전 반영 사항

  • dev dependency에 있어야 할 의존성 dev로 이동했습니다.
  • 컴포넌트 props 이름이 컴포넌트 이름과 맞지 않는 경우가 있어서 이름 맞춰줬습니다. (아마도 파일 이름 변경하면서 같이 변경이 안 된 것으로 보여서)
  • evenPageLayout 파일 이름 오류 event를 붙여서 수정
  • StepList Step BillStep MemberStep 관련해서는 아래 오늘 뭐 했지 링크에 자세히 설명해뒀어요!

issue와 연관된 기능 구현

  • 지출 액션 수정 및 삭제 컴포넌트 퍼블리싱
  • 지출 액션 수정
  • 지출 액션 삭제
  • 디자인시스템: StepItem 수정
    현재는 StepItem이 props로 받은 bills를 배열로 BillItem을 뿌리고 있음. 즉. 밖에서 직접 사용할 때는 bills props에 배열을 넘겨주고 있기 때문에 각각의 BillItem을 클릭할 수 없음. 따라서 디자인시스템의 StepItem에서 BillItem 각각을 클릭할 수 있도록 수정해야 함
  • [ ]

🫡 참고사항

@jinhokim98 jinhokim98 added 🖥️ FE Frontend ⚙️ feat feature labels Aug 5, 2024
@jinhokim98 jinhokim98 added this to the lev3 milestone Aug 5, 2024
@jinhokim98 jinhokim98 requested review from pakxe, soi-ha and Todari August 5, 2024 07:14
@jinhokim98 jinhokim98 self-assigned this Aug 5, 2024
@soi-ha soi-ha changed the title [FE] 액션 수정, 삭제 기능 구현 [FE] 지출 액션 수정, 삭제 기능 구현 Aug 5, 2024
@Todari Todari assigned soi-ha and unassigned jinhokim98 Aug 5, 2024
@Todari Todari self-assigned this Aug 5, 2024
@Todari Todari requested review from soi-ha and Todari and removed request for soi-ha and Todari August 5, 2024 08:04
Copy link

github-actions bot commented Aug 5, 2024

Copy link

github-actions bot commented Aug 5, 2024

Copy link

github-actions bot commented Aug 5, 2024

Copy link

github-actions bot commented Aug 5, 2024

Copy link

github-actions bot commented Aug 5, 2024

Copy link

github-actions bot commented Aug 5, 2024

Copy link

github-actions bot commented Aug 5, 2024

const memberActions = stepList.filter(step => step.type !== 'BILL').flatMap(step => step.actions);

const hasNextMemberAction = (name: string, sequence: number) => {
return memberActions.find(action => action.name === name && action.sequence > sequence) !== undefined;
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
return memberActions.find(action => action.name === name && action.sequence > sequence) !== undefined;
return memberActions.some(action => action.name === name && action.sequence > sequence);

find보다 some 메소드를 사용하는 것은 어떨까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

아닛 그런 방법이~!!!~ 너무 좋은 의견이에요
코드가 바뀌긴했지만 이런 상황나오면 some 사용해야지!

@jinhokim98 jinhokim98 closed this Aug 7, 2024
@jinhokim98 jinhokim98 deleted the feature/#175 branch August 7, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants