-
Notifications
You must be signed in to change notification settings - Fork 6
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
페이지 UI: 즐겨찾기 페이지 #124
페이지 UI: 즐겨찾기 페이지 #124
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
고생하셨습니다!
src/app/favorite/page.tsx
Outdated
|
||
import classNames from 'classnames/bind'; | ||
|
||
import useScroll from '@/hooks/useScroll'; |
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.
import useScroll from '@/hooks/useScroll'; | |
import useScroll from '@hooks/useScroll'; |
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.
수정완료했습니다!
setIsScrolled(window.scrollY > 1); | ||
}; | ||
|
||
window.addEventListener('scroll', handleScroll); |
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.
스크롤 이벤트가 감지되면 handleScroll 함수가 매번 실행되기 때문에 throttle을 적용해서 성능 개선하는 건 어떨까요!
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.
이거 라이브러리 불러오려다가 git rebase했더니.. 이전 커밋 로그까지 같이 찍혀버렸네요...흑흑... throttle 적용했습니다!
src/app/favorite/page.tsx
Outdated
<div> | ||
<> | ||
<Header isDisplayLogo={false}>즐겨찾기</Header> | ||
<Spacing size={8} /> |
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.
피그마에선 12px로 되어있네요 채은님께 말씀드려 통일시켜보죠!
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.
넵 일단 12로 수정했습니다!
margin: 13px 0 24px; | ||
} | ||
|
||
.productArticleContainer { |
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.
무한 스크롤로 인해 productArticle이 엄청 쌓이게 되면 애니메이션 효과가 버벅임 없이 동작하는지 한번 봐야할 것 같아요!
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.
넵!
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.
고생하셨습니다~!
해당 사항 (중복 선택)
설명
Key Changes
How it Works
To Reviewers