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

홈 리팩토링 및 작동 보완 #170

Merged
merged 13 commits into from
Nov 8, 2023
Merged

홈 리팩토링 및 작동 보완 #170

merged 13 commits into from
Nov 8, 2023

Conversation

hjiwon
Copy link
Contributor

@hjiwon hjiwon commented Nov 8, 2023

구현된 부분

  • Suspense, 에러바운더리 설정
  • 크기가 큰 코드 컴포넌트화
  • 사용하지 않는 코드 제거

미구현 부분

  • 로딩 스타일 적용
  • 에러 처리

고민

  • X

Comment on lines +88 to +115
<SwiperSlide key={shortForm.profileShortFormUrl + index}>
<div ref={nextPageRef}></div>

<Swiper
modules={[A11y]}
grabCursor={true}
autoHeight={true}
direction={'horizontal'}
onSlideNextTransitionEnd={() => {
navigate(`/pet/${shortForm.petId}`);
}}
>
<SwiperSlide>
<HomeVideo
url={shortForm.profileShortFormUrl}
muted={muted}
handleDoubleClick={handleDoubleClick}
hovering={hovering}
setHovering={setHovering}
/>
</SwiperSlide>
<SwiperSlide>
<div className="w-full h-[90vh] flex items-center justify-center font-bold text-white bg-black">
<div>동물 정보 가져오겠습니다~</div>
</div>
</SwiperSlide>
</Swiper>
</SwiperSlide>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

return 문이 너무 거대해진 것 같아서..
map 내부의 개별적인 슬라이드들도 컴포넌트로 분리하는게 좋을지 고민입니다.

@hjiwon hjiwon merged commit d506f33 into develop Nov 8, 2023
1 check passed
@hjiwon hjiwon deleted the feat/#138 branch November 8, 2023 05:04
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.

1 participant