-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] refactor: scrollTop에서 ref로 접근하는 방식으로 변경 (#639)
* refactor: 스크롤 이벤트를 엘리먼트에 접근하지 않고 ref로 접근하게 구현 * feat: 스크롤 버튼 디자인 수정 * feat: 상품 상세 페이지에도 스크롤 적용 * refactor: hook이 최상단에 있게끔 수정 * feat: 마이페이지에서도 스크롤 버튼 추가 * refactor: scrollTop 함수가 ref를 받도록 수정 * refactor: 스크롤 버튼에서 불필요한 useEffect삭제 * refactor: useScroll 훅 리팩토링 * refactor: useScrollRestoration 훅을 컴포넌트에서 페이지로 이동 * refactor: recipeRef를 컴포넌트에서 페이지로 이동 * fix: if문 setTimeout 안으로 이동
- Loading branch information
Showing
10 changed files
with
103 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.