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

Feat/227 #337

Merged
merged 20 commits into from
Jun 3, 2024
Merged

Feat/227 #337

merged 20 commits into from
Jun 3, 2024

Conversation

devkyoung2
Copy link
Member

#️⃣연관된 이슈

close: #227 #228

📝작업 내용

  • 펀딩함 레이아웃 구현
  • 펀딩함 api 연동
  • 탭 모드 추가

🙏리뷰 요구사항(선택)

  • 선물함과 각 상품아이템 컴포넌트와 내용의 거의 동일해서 리팩토링해서 쓸까 하다가 두 컴포넌트는 api랑 관심사가 달라서 선물함 코드에서 일부 수정했습니다. 공통되는 부분은 믹스인이나 유틸함수로 추출했는데 이 부분 참고바랍니다.

@devkyoung2 devkyoung2 self-assigned this May 31, 2024
Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kakao-funding ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 8:13am

@uraflower uraflower self-requested a review May 31, 2024 14:37
Comment on lines 40 to 42
export const NotUsedGift: Story = {
args: { fundingItem },
};
Copy link
Contributor

Choose a reason for hiding this comment

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

스토리이름이 FundingItem이 아니라 Gift로 되어 있어요

Copy link
Member Author

Choose a reason for hiding this comment

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

어이쿠 코드 옮겨오다가 놓쳤나봐요 수정했습니다. ee51e31

Comment on lines 6 to 14
if (date) {
const currentDate = new Date(date);
const oneYearLaterDate = new Date(
currentDate.getFullYear() + 1,
currentDate.getMonth(),
currentDate.getDate(),
);
return oneYearLaterDate;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

8-13 줄이 중복되는 것 같습니다. 아래처럼 리팩토링하는 건 어떨까요?

const getOneYearLaterDate = (date?: string) => {
  const currentDate = date ? new Date(date) : new Date();
  const oneYearLaterDate = new Date(
    currentDate.getFullYear() + 1,
    currentDate.getMonth(),
    currentDate.getDate(),
  );
  return oneYearLaterDate;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

수정했습니다! 33eb46e

@devkyoung2 devkyoung2 merged commit 432af82 into dev Jun 3, 2024
3 checks passed
@devkyoung2 devkyoung2 deleted the feat/227 branch June 3, 2024 17:12
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.

펀딩함 페이지 - 사용가능 펀딩 탭 컴포넌트 구현
3 participants