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] 체크리스트 리스트 페이지 내 코드 리팩토링 및 시간 포맷팅을 추가한다. #175

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

healim01
Copy link
Contributor

❗ Issue

✨ 구현한 기능

  • 체크리스트 리스트 페이지 내에 구조분해 할당 추가
  • 시간 포맷팅 추가로 24시간 이내 작성 시 ~시간 전 이라고 표시
스크린샷 2024-07-30 오전 11 09 39

📢 논의하고 싶은 내용

🎸 기타

Copy link

@@ -1,5 +1,10 @@
const formattedDate = (stringDate: string) => {
const date = new Date(stringDate);
const nowDate = new Date();
const timeDifference = Math.floor((nowDate.getTime() - date.getTime()) / (1000 * 60 * 60));
console.log(timeDifference);
Copy link
Contributor

Choose a reason for hiding this comment

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

log 제거해주세요 ~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

이런이런~
네네 삭제했습니다~

Copy link
Contributor

@skiende74 skiende74 left a comment

Choose a reason for hiding this comment

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

console.log 만 제거하고 올려주세요. approve합니다

@healim01
Copy link
Contributor Author

로그 삭제해서 머지하겠습니다.

@healim01 healim01 merged commit 901ac4a into dev-fe Jul 30, 2024
2 checks passed
@healim01 healim01 deleted the feat/173-refactor-checklist-list-set-time-format branch July 30, 2024 05:07
Copy link

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