-
Notifications
You must be signed in to change notification settings - Fork 1
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/#264: 어학 공지사항 기능 추가 #297
Conversation
어학과 채용 공지 UI 에 필요한 아이콘 추가
Primary color 를 조금 더 진한 파란색으로 변경
해당 컴포넌트에 취업 길라잡이, 어학 공지사항 카드 추가
해당 상수값이 다른 변수에 재할당되어 타입 에러가 발생하는 문제 해결을 위해 readonly 타입 제거
기존에는 학과가 있는지 없는지에 대한 값을 매개변수로 받았지만 확장성을 위해 엔드포인트를 직접 받아서 요청하도록 변경
link: string; | ||
} | ||
|
||
const InformHalfCardList = ({ |
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.
해당 컴포넌트는 리스트보다 하나의 카드를 보여주는 컴포넌트 같은데 List
를 컴포넌트 이름에서 제거하는게 어떨까요~?
src/pages/Home/index.tsx
Outdated
<HalfCardWrapper> | ||
<InformHalfCardList | ||
iconKind="account" | ||
title="취업 길라잡이" | ||
subTitle="채용 정보 확인" | ||
link="/announcement/recruit/normal" | ||
/> | ||
<InformHalfCardList | ||
iconKind="language" | ||
title="어학 공지사항" | ||
subTitle="어학 정보 확인" | ||
link="/announcement/language/normal" | ||
/> | ||
</HalfCardWrapper> |
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.
InformHalfCardList
와 InformHalfCard
를 구분해서 만들고,
InformHalfCardList
내부에서 InformHalfCard
을 호출하는건 어떨까요?
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.
그러면 InformHalfCardList -> InformHalfCard
HalfCardWrapper -> InformHalfCardList
가 되는건가요?
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.
예예 맞습니더
🤠 개요
closes: Feat: 홈 화면에 어학 관련 카드 추가 #264
어학 공지사항, 채용 공지사항의 카드 컴포넌트를 추가했어요
어학 공지사항은 확인이 가능하지만 채용 공지사항은 아직 에러가 발생해요
기존에 공지사항을 서버에 요청하는 방식을 일부 수정했어요 (이전에는 학과가 있는지 없는지 매개변수로 넘겨줬다면 현재는 엔드포인트값을 직접 넘겨주도록 변경했어요)
나중에 작업할 채용 공지사항의 경우 업로드 날짜가 아닌 채용 기간을 보여주기에 해당 사항도 일부 수정할 필요가 있어보여요!
💫 설명
📷 스크린샷 (Optional)