We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0aae182 + cc71bb3 commit b31b9a9Copy full SHA for b31b9a9
apps/farminglog/src/pages/farminglog/view/index.tsx
@@ -20,6 +20,9 @@ export default function View() {
20
const navigate = useNavigate();
21
const { isApp, isMobile, isDesktop, isTablet } = useMediaQueries();
22
const [currentPage, setCurrentPage] = useState<number>(0);
23
+ const handleScrollTop = () => {
24
+ window.scrollTo({ top: 0 });
25
+ };
26
27
const {
28
data,
@@ -65,6 +68,7 @@ export default function View() {
65
68
// 페이지네이션 핸들러
66
69
const handlePageChange = (page: number) => {
67
70
setCurrentPage(page);
71
+ handleScrollTop(); //위로 올라가라잇
72
};
73
74
const handlePreviousPage = () => {
0 commit comments