Skip to content

Commit

Permalink
Update date preselection years
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarAsplin committed May 10, 2024
1 parent b9575d9 commit d86bddf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const FestivalMatchSettingsBar = ({
}
};

const onDateRangePreSelect = (range: 2021 | 2022 | 2023 | 'future') => {
const onDateRangePreSelect = (range: 2022 | 2023 | 2024 | 'future') => {
if (typeof range === 'number') {
const from = new Date(range, 0, 1);
const to = new Date(range, 11, 31);
Expand Down Expand Up @@ -219,9 +219,9 @@ const FestivalMatchSettingsBar = ({
)}
{showYearPreSelect && (
<StyledBox sx={{ justifyContent: 'center', pb: 0.5, width: '100%' }}>
<Button onClick={() => onDateRangePreSelect(2021)}>2021</Button>
<Button onClick={() => onDateRangePreSelect(2022)}>2022</Button>
<Button onClick={() => onDateRangePreSelect(2023)}>2023</Button>
<Button onClick={() => onDateRangePreSelect(2024)}>2024/Button>
<Button onClick={() => onDateRangePreSelect('future')}>
{t('common.future')}
</Button>
Expand Down

0 comments on commit d86bddf

Please sign in to comment.