diff --git a/src/assets/icons/loki.svg b/src/assets/icons/loki.svg index 1e61fd61a..c9f38de02 100644 --- a/src/assets/icons/loki.svg +++ b/src/assets/icons/loki.svg @@ -1,4 +1,4 @@ - + = ({ onPress, previousFallbackRoute: fallback }; return ( ); }; diff --git a/src/components/HeaderCard.tsx b/src/components/HeaderCard.tsx index d78a3731a..83e2cf713 100644 --- a/src/components/HeaderCard.tsx +++ b/src/components/HeaderCard.tsx @@ -1,5 +1,6 @@ import { ReactNode } from 'react'; import BackButton from './BackButton'; +import { NavLink } from 'react-router-dom'; import Loki from '../assets/icons/loki.svg'; type Props = { @@ -23,17 +24,19 @@ const HeaderCard: React.FC = ({ children, leftContent, rightContent, onBa
- {showBack && } - +
+ +
+ + +
-
-
- {rightContent} - {!showBack && } +
+
+ {leftContent} {rightContent}
-
{leftContent}
-
+
{leftContent}
{rightContent}
diff --git a/src/pages/pupil/single-course/PupilCourseButtons.tsx b/src/pages/pupil/single-course/PupilCourseButtons.tsx index 288869fea..eb7190834 100644 --- a/src/pages/pupil/single-course/PupilCourseButtons.tsx +++ b/src/pages/pupil/single-course/PupilCourseButtons.tsx @@ -187,7 +187,7 @@ const PupilCourseButtons: React.FC = ({ subcourse, refresh, i {t(`lernfair.reason.course.pupil.${subcourse.canJoin.reason as CanJoinReason}`)} )} -
+
{!subcourse.isParticipant && subcourse.canJoin?.allowed && (