From af506961eb0083de00b1042e45de83c22606a70d Mon Sep 17 00:00:00 2001 From: Antti Leinonen Date: Tue, 9 Jan 2024 05:13:16 +0200 Subject: [PATCH] Fix course page's tab-bar --- frontend/components/Dashboard/DashboardTabBar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/Dashboard/DashboardTabBar.tsx b/frontend/components/Dashboard/DashboardTabBar.tsx index 39d1da0ce..f696c5fe1 100644 --- a/frontend/components/Dashboard/DashboardTabBar.tsx +++ b/frontend/components/Dashboard/DashboardTabBar.tsx @@ -73,7 +73,7 @@ function DashboardTabBar(props: DashboardTabsProps) { const handleChange = useCallback( (_: SyntheticEvent, newValue: number) => { setValue(newValue) - Router.push(`/courses/${slug}${routes[newValue].path}`) + Router.push(`/admin/courses/${slug}${routes[newValue].path}`) }, [slug], ) @@ -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" >