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

refactor: 신입 모집 마감 날짜 수정 #174

Merged
merged 5 commits into from
Aug 31, 2024
Merged

Conversation

smb0123
Copy link
Collaborator

@smb0123 smb0123 commented Aug 29, 2024

주요 변경사항

  • END_DATE 상수에 프로퍼티를 추가하였습니다.
  • 지원서를 제출하기 전에 모집 마감 기간 전인지 확인하는 코드에서 마감 기간이 27기 신입 모집 마감 날짜 기간으로 돼있어서 END_DATE를 import 하는 코드로 변경하였습니다.

리뷰어에게...

관련 이슈

closes #173

체크리스트

  • reviewers 설정
  • label 설정
  • milestone 설정

@smb0123 smb0123 added the invalid 좋은 제안이였으나 지금으로써는 안맞는거 같아요 label Aug 29, 2024
@smb0123 smb0123 requested review from 2yunseong and geongyu09 August 29, 2024 13:49
@smb0123 smb0123 self-assigned this Aug 29, 2024
@smb0123 smb0123 linked an issue Aug 29, 2024 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@2yunseong 2yunseong left a comment

Choose a reason for hiding this comment

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

👍 하나만 확인 부탁드립니다 ~!

Comment on lines 201 to 208
export const END_DATE = {
year: 2024,
month: 9,
date: 15,
hours: 15,
minutes: 0,
seconds: 0,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

위의 JS DOC도 최신화 해주면 좋겠네요!

Copy link
Collaborator

Choose a reason for hiding this comment

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

DOC를 최신화 해주실 때 혹시 UTC라서 9시간 차이나는 것도 추가해주실 수 있으신가요??

Copy link
Collaborator

@geongyu09 geongyu09 left a comment

Choose a reason for hiding this comment

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

좋네요! 수고하셨습니다

@@ -17,6 +17,7 @@ import {
applicationDataAtom,
applicationIndexAtom,
} from "../stores/application";
import { END_DATE } from "../constants/application/28";
Copy link
Collaborator

Choose a reason for hiding this comment

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

동적 import 를 사용해도 좋을 것 같습니다! 다만 지금도 충분히 좋아 보입니다!

Copy link
Collaborator

@loopy-lim loopy-lim left a comment

Choose a reason for hiding this comment

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

이제 진짜 본격적이라는 생각이 들어서 벌써 무섭네요 ㄷㄷㄷㄷ....

Comment on lines 201 to 208
export const END_DATE = {
year: 2024,
month: 9,
date: 15,
hours: 15,
minutes: 0,
seconds: 0,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

DOC를 최신화 해주실 때 혹시 UTC라서 9시간 차이나는 것도 추가해주실 수 있으신가요??

Comment on lines 88 to 98
if (
Date.now() >
Date.UTC(
END_DATE.year,
END_DATE.month - 1,
END_DATE.date,
END_DATE.hours,
END_DATE.minutes,
END_DATE.seconds
)
) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

항상... 무섭네요...ㅠㅠㅠ
흠... 이렇게 작성하려면 UTC말도 더 좋은 방법이 있는지 고민해봐도 좋을 것 같다는 생각이 듭니다...

Copy link
Collaborator

Choose a reason for hiding this comment

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

저번에한번.. 난리가 났죠 ㅋㅋ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

제가 콘솔문 출력하면서 시간 비교하여 올바르게 동작하는지 검증하였는데 틀린 부분 있으면 말씀해주세요

Copy link
Collaborator Author

@smb0123 smb0123 left a comment

Choose a reason for hiding this comment

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

  • JS DOC 최신화
  • 동적 import로 변경 ( await import로 변경하려 하였으나 useSetAtom과 같은 리액트 훅을 async 안에 작성하면 안된다는 eslint 에러로 인해 require 문으로 변경하였습니다.)
  • UTC 고려하여 시간 비교를 수정하였습니다.
  • 1차 모집 기간 날짜 수정

Copy link
Collaborator

@2yunseong 2yunseong left a comment

Choose a reason for hiding this comment

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

👍 고생하셨습니다

@smb0123 smb0123 merged commit f27a023 into main Aug 31, 2024
1 check passed
@2yunseong 2yunseong deleted the refactor/173-endDate branch September 9, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid 좋은 제안이였으나 지금으로써는 안맞는거 같아요
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FE] refactor: 신입 모집 마감 날짜 수정
4 participants