Skip to content

Commit

Permalink
업스크롤 함수 추가 및 기획 & 디자인 파트 추가 (#146)
Browse files Browse the repository at this point in the history
* feat: setPage의 scroll up 함수 제작

* feat: 파트 기획 & 디자인 추가
  • Loading branch information
KimKyuHoi authored Jan 12, 2025
1 parent 07900a8 commit f6856b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/mypage/components/UserInfoModify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import { IuserModify } from '../../../inteface/myPageType';
const trackOptions = [
{ value: 1, label: '기획' },
{ value: 2, label: '디자인' },
// { value: 3, label: '기획디자인' },
{ value: 3, label: '백엔드' },
{ value: 4, label: '프론트엔드' },
{ value: 3, label: '기획 & 디자인' },
{ value: 4, label: '백엔드' },
{ value: 5, label: '프론트엔드' },
];

function findLabelByValue(value: number) {
Expand Down
5 changes: 5 additions & 0 deletions src/query/get/useServerSidePagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ function useServerSidePagination<T>({
const setPage = (page: number): void => {
setCurrentPageInfo(page);
setCurrentPage(page);

window.scrollTo({
top: 0,
behavior: 'smooth',
});
};

const renderPaginationBtn = (): JSX.Element => {
Expand Down

0 comments on commit f6856b2

Please sign in to comment.