Skip to content

Commit

Permalink
pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed May 22, 2024
1 parent e2ab8e4 commit 85cdc7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion website/src/components/SearchPage/SearchPagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export const SearchPagination: FC<SearchPaginationProps> = ({
<MUIPagination
count={count}
page={page}
onChange={(_, newPage) => setPage(newPage)}
onChange={(_, newPage) => {setPage(newPage)
window.scrollTo({ top: 0, behavior: 'smooth' });
}


}
color='primary'
variant='outlined'
shape='rounded'
Expand Down

0 comments on commit 85cdc7a

Please sign in to comment.