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

✨ Component : 모임인원 picker , 모임 방 만들기 UI 개선 및 swiper 로직 수정 #63

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

Salvation-sub
Copy link
Contributor

💡 왜 PR을 올렸나요?

  • 신규 피처

💁 무엇이 어떻게 바뀌나요?

  1. 모임인원 피커
  2. 모임 방 만들기 UI 개선 및 추가
  3. swiper 로직 수정

💬 리뷰어분들께

  • 퇴근하면서 pr 급하게 올리는거예요! 미완성입니다.

@github-actions github-actions bot added this to the 7월 1주차 Sprint milestone Jul 4, 2023
@github-actions github-actions bot added the Component 컴포넌트를 구현한 경우 label Jul 4, 2023
@github-actions
Copy link

github-actions bot commented Jul 4, 2023

Labeler가 제목과 설명에 있는 특별한 텍스트와 일치하는 레이블을 적용했습니다.
Label을 검토하고 필요한 변경 사항을 적용해 주세요.

Copy link
Member

@guesung guesung left a comment

Choose a reason for hiding this comment

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

코드 잘봤습니다 ~ 😄
많이 배웁니당 !!
PR 완성되면 한번 더 확인할게요
완성하구 이미지 혹은 gif로 보여주시면 감사하겠습니당 :)

Comment on lines -18 to +21
const setYearValue = (value: number) => {
const setValueByKeyType = (value: string | number, keyType: string) => {
setBirthdayValue({
...birthdayValue,
year: yearList[value],
});
};
const setMonthValue = (value: number) => {
setBirthdayValue({
...birthdayValue,
month: monthList[value],
});
};
const setDateValue = (value: number) => {
setBirthdayValue({
...birthdayValue,
date: dateList[value],
[keyType]: value,
Copy link
Member

Choose a reason for hiding this comment

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

오오 ,,, 아주 좋아요 !!!
이 코드가 조금 마음에 안들었는데 이렇게 간결화할 수 있군요

Comment on lines +36 to +50
{({ isActive, isPrev, isNext }) =>
isActive ? (
<div className="flex justify-center items-center text-black2 text-66 font-700 pt-10">
{slideContent}
</div>
) : isPrev || isNext ? (
<div className="flex justify-center items-center text-gray3 text-50 font-500 pt-30">
{slideContent}
</div>
) : (
<div className="flex justify-center items-center text-gray8 text-35 font-500 pt-50">
{slideContent}
</div>
)
}
Copy link
Member

Choose a reason for hiding this comment

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

옹 globalcss가 아니라, 이런식으로 Swiper 내부의 속성을 설정할 수가 있군요 ?!

}}
modules={[FreeMode]}
onSlideChange={(swiper) => setValue && setValue(swiper.activeIndex)}
initialSlide={initialValue ? selectList.indexOf(initialValue as never) : 0}
Copy link
Member

Choose a reason for hiding this comment

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

as never은 어떤 타입 설정인가요 ??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

라이브러리에서 제공되는 initialValue가 never 타입으로 설정되어 있더군요! 그래서 임시로 일단 해뒀습니다.

@guesung guesung merged commit 002560d into develop Jul 5, 2023
2 checks passed
@guesung guesung deleted the feature/personnel-picker branch July 5, 2023 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component 컴포넌트를 구현한 경우
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants