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

Migrate LectureGroupBlock to typescript #24

Merged
merged 7 commits into from
Sep 16, 2023

Conversation

useruseruse
Copy link
Contributor

@useruseruse useruseruse commented Sep 9, 2023

아래 항목 tsx로 이전

components/blocks/LectureGroupBlock.jsx
components/blocks/LectureGroupBlockRow.jsx
components/blocks/LectureGroupSimpleBlock.jsx
components/blocks/LectureGroupSimpleBlock.jsx
shape/model/subject/classtimeShape.js
shape/model/subject/ExamtimeShape.js
shape/model/subject/LectureShape.js
shape/model/subject/NestedProfessorShape.js 

@useruseruse useruseruse changed the title lectureGroupBlock .jsx nd shape.jsx into tsx Update lectureGroupBlock .jsx nd shape.jsx into tsx Sep 9, 2023
@useruseruse useruseruse changed the title Update lectureGroupBlock .jsx nd shape.jsx into tsx Migrate LectureGroupBlock to typescript Sep 9, 2023
@useruseruse useruseruse self-assigned this Sep 9, 2023
@zealotzealot
Copy link
Member

잘 수정하신 것 같습니다! 다만 타입을 만들 때 이름 convention은 어떻게 할지, 파일 위치는 어떻게 할지 등등에 대해서 팀 전체적인 논의를 하고 넘어가야 할 것 같아요. 이 부분은 한명이 일괄로 작업을 해야 나중에 conflict 없이 진행할 수 있을 것 같고요

@zealotzealot
Copy link
Member

zealotzealot commented Sep 14, 2023

그리고 혹시 Classtime과 Lecture에는 interface를 쓰고 Examtime과 NestedProfessor에는 type를 쓰셨는데 섞어서 쓰신 이유가 있을까요?

@useruseruse
Copy link
Contributor Author

헉 처음에 type로 작업하다가 이후에 interface로 다 바꿨는데 그 두개 파일 수정이 안된 것 같아요.. 딱히 이유는 없습니다..!

isTimetableReadonly: boolean;
inCart: boolean;
fromCart: boolean;
addToCart: (lecture: lectureType) => void;
Copy link
Member

Choose a reason for hiding this comment

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

반복되는 타입은 별도로 분리하는게 좋을 것 같습니다!

@sboh1214 sboh1214 force-pushed the chore@migration-lectureGroupBlock branch from 025b350 to 34d77a5 Compare September 16, 2023 04:20
Copy link
Contributor

@sboh1214 sboh1214 left a comment

Choose a reason for hiding this comment

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

목요일 회의때보다 코드가 훨씬 더 좋아졌네요 수고하셨습니다~!

image

@sboh1214 sboh1214 merged commit 4f0133e into main Sep 16, 2023
3 checks passed
@sboh1214 sboh1214 deleted the chore@migration-lectureGroupBlock branch September 16, 2023 04:23
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.

4 participants