From 1f72c809974e768089a3b3c38e2d1a4499358026 Mon Sep 17 00:00:00 2001 From: Loculus bot Date: Wed, 22 May 2024 14:39:44 +0000 Subject: [PATCH] Automated code formatting --- website/src/components/SearchPage/SearchPagination.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/website/src/components/SearchPage/SearchPagination.tsx b/website/src/components/SearchPage/SearchPagination.tsx index 1963e2da6..99597e373 100644 --- a/website/src/components/SearchPage/SearchPagination.tsx +++ b/website/src/components/SearchPage/SearchPagination.tsx @@ -17,12 +17,10 @@ export const SearchPagination: FC = ({ {setPage(newPage) + onChange={(_, newPage) => { + setPage(newPage); window.scrollTo({ top: 0, behavior: 'smooth' }); - } - - - } + }} color='primary' variant='outlined' shape='rounded'