@@ -19,7 +19,6 @@ import { BrandMark } from '../components/BrandMark'
|
||||
import { formatWithZone } from '../lib/dates'
|
||||
import { CourseCover, ProgressBar } from './AcademyBits'
|
||||
import { useStudentAuth } from './StudentAuthContext'
|
||||
import { STUDENT_ROUTES } from '../lib/routes'
|
||||
|
||||
type Tab = 'kursy' | 'webinary' | 'certyfikaty' | 'dane'
|
||||
|
||||
@@ -41,7 +40,8 @@ export function StudentDashboardPage() {
|
||||
|
||||
const handleLogout = () => {
|
||||
logout()
|
||||
navigate(STUDENT_ROUTES.login, { replace: true })
|
||||
// po wylogowaniu na strone glowna, nie na formularz logowania
|
||||
navigate('/', { replace: true })
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user