Skip to content

Commit

Permalink
Fix course page's tab-bar (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Jan 9, 2024
1 parent a71f5cb commit 91b6d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/Dashboard/DashboardTabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function DashboardTabBar(props: DashboardTabsProps) {
const handleChange = useCallback(
(_: SyntheticEvent<Element, Event>, newValue: number) => {
setValue(newValue)
Router.push(`/courses/${slug}${routes[newValue].path}`)
Router.push(`/admin/courses/${slug}${routes[newValue].path}`)
},
[slug],
)
Expand All @@ -86,7 +86,7 @@ function DashboardTabBar(props: DashboardTabsProps) {
variant="fullWidth"
value={value}
onChange={handleChange}
textColor="inherit"
textColor="primary"
indicatorColor="secondary"
aria-label="course dashboard navi"
>
Expand Down

0 comments on commit 91b6d05

Please sign in to comment.