Skip to content

Commit

Permalink
fix(meetings): update year order in week selector
Browse files Browse the repository at this point in the history
  • Loading branch information
FussuChalice authored Jan 13, 2025
1 parent 6ffd6f7 commit 9f7c14e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/scrollable_tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ function ScrollableTabs({
'& .Mui-selected > .MuiSvgIcon-root g path': {
fill: 'var(--accent-dark)',
},
'& .MuiTabScrollButton-root': {
width: 'auto !important',
},
...sx,
}}
>
Expand Down
2 changes: 1 addition & 1 deletion src/features/meetings/week_selector/useWeekSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const useWeekSelector = () => {
const meeting: MeetingType =
location.pathname === '/midweek-meeting' ? 'midweek' : 'weekend';

const tabs = sources.map((year) => ({
const tabs = sources.toReversed().map((year) => ({
label: year.value.toString(),
Component: <MonthsContainer months={year.months} reverse={sortDown} />,
}));
Expand Down

0 comments on commit 9f7c14e

Please sign in to comment.