Skip to content

Commit 0fcdd44

Browse files
committed
calendar url fix
1 parent e87a994 commit 0fcdd44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frontend/src/pages/CalendarPage/CalendarTab.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const CalendarTab: React.FC = () => {
2626
const canViewReviews = isHead(user.role) || isLead(user.role);
2727

2828
const tabs = [
29-
{ tabUrlValue: 'mainCalendar', tabName: 'Calendar' },
29+
{ tabUrlValue: '', tabName: 'Calendar' },
3030
{ tabUrlValue: 'yourEvents', tabName: 'Your Events' }
3131
];
3232

@@ -93,7 +93,7 @@ const CalendarTab: React.FC = () => {
9393

9494
const handleNewEventClick = (date?: Date) => {
9595
if (tabIndex !== 0) {
96-
history.push(`${routes.CALENDAR}/mainCalendar`);
96+
history.push(routes.CALENDAR);
9797
}
9898
setCreateModalDate(date || new Date());
9999
setIsCreateModalOpen(true);
@@ -110,7 +110,7 @@ const CalendarTab: React.FC = () => {
110110
setTab={setTabIndex}
111111
tabsLabels={tabs}
112112
baseUrl={routes.CALENDAR}
113-
defaultTab="mainCalendar"
113+
defaultTab=""
114114
id="calendar-tabs"
115115
/>
116116
</Box>

0 commit comments

Comments
 (0)