diff --git a/src/app/tools/ratings/page.tsx b/src/app/tools/ratings/page.tsx index f5367b956..9efb65575 100644 --- a/src/app/tools/ratings/page.tsx +++ b/src/app/tools/ratings/page.tsx @@ -204,21 +204,6 @@ export default function Page() { return ( - setRowsPerPage(parseInt(value))} - defaultValue={`${rowsPerPage}`} - > - - - - {ROWS_OPTIONS.map((size) => ( - - {size} per page - - ))} - - - - - - - - { - if (event.key === 'Enter') { - handleJumpToScore(); - setJumpToScoreOpen(false); - } - }} - /> - - - - - - - - - - - - - - - - - - - - - { - if (event.key === 'Enter') { - handleJumpToPosition(); - setJumpToPositionOpen(false); - } - }} - /> - - - - - - - - - - - - - - - - - - - - - setJumpToLeague(parseInt(value))} - > - - - - {ratingsInfo?.detail === undefined && - ratingsInfo?.leagues.map(({ index, title }) => ( - - {title} + {latestArchivedSeasonNumber && + range( + FIRST_ARCHIVED_RATINGS_SEASON, + latestArchivedSeasonNumber + 1, + ) + .map((season) => ( + + Season {season} - ))} - - + )) + .reverse()} + + + - - - - - - - - - - - - - - - - - - - - - - - + + Jump to: + + + + + + { + if (event.key === 'Enter') { + handleJumpToScore(); + setJumpToScoreOpen(false); + } + }} /> - - - {searchResults?.map((player) => ( + + + + + + + + + + + + + + + + + + + { + if (event.key === 'Enter') { + handleJumpToPosition(); + setJumpToPositionOpen(false); + } + }} + /> + + + + + + + + + + + + + + + + + + + + setJumpToLeague(parseInt(value))} + > + + + + {ratingsInfo?.detail === undefined && + ratingsInfo?.leagues.map(({ index, title }) => ( + + {title} + + ))} + + + + + + + - ))} - - {searchResults?.length === 0 && ( - - )} + + + + + + + - - - - + + + + + + + + + + + + {searchResults?.map((player) => ( + + + + ))} + + {searchResults?.length === 0 && ( + + )} + + + + + + + - - - + + + diff --git a/src/components/PageWrapper.tsx b/src/components/PageWrapper.tsx index 34ef80c03..666937af3 100644 --- a/src/components/PageWrapper.tsx +++ b/src/components/PageWrapper.tsx @@ -1,7 +1,7 @@ -import { Theme } from '@radix-ui/themes'; +import { Flex, Theme } from '@radix-ui/themes'; import { ComponentProps } from 'react'; -interface PageWrapperProps extends ComponentProps<'div'> { +interface PageWrapperProps extends ComponentProps { color?: ComponentProps['accentColor']; } @@ -12,20 +12,19 @@ export default function PageWrapper({ }: PageWrapperProps) { return ( -
);