Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
uche789 committed Nov 8, 2024
1 parent d055dcc commit 00543b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/features/layout/components/app-footer/AppFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ export default function AppFooter() {
if (window.location.pathname.startsWith(`/learn-german/${params.lang}${to}`)) {
className += " font-semibold text-pink-600"
}

if (to.includes('grammar') &&
(window.location.pathname.endsWith(`/learn-german/${params.lang}/`)
|| window.location.pathname.endsWith(`/learn-german/${params.lang}`))) {
className += " font-semibold text-pink-600"
}
return className;
}

Expand Down

0 comments on commit 00543b5

Please sign in to comment.