-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/227 #337
Conversation
- 기존 사용가능한 펀딩/사용한 펀딩 두개로 나누었던 탭을 하나로 합치면서 해당 파일들을 삭제함
- 기존 : date - 변경 : receivedDate
- 탭모드를 추가하여 펀딩함과 선물함에 여백을 추가함
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
export const NotUsedGift: Story = { | ||
args: { fundingItem }, | ||
}; |
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.
스토리이름이 FundingItem이 아니라 Gift로 되어 있어요
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.
어이쿠 코드 옮겨오다가 놓쳤나봐요 수정했습니다. ee51e31
src/utils/generate.ts
Outdated
if (date) { | ||
const currentDate = new Date(date); | ||
const oneYearLaterDate = new Date( | ||
currentDate.getFullYear() + 1, | ||
currentDate.getMonth(), | ||
currentDate.getDate(), | ||
); | ||
return oneYearLaterDate; | ||
} |
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.
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;
}
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.
수정했습니다! 33eb46e
#️⃣연관된 이슈
close: #227 #228
📝작업 내용
🙏리뷰 요구사항(선택)