Skip to content

Commit

Permalink
VKT(Frontend): Always show navigation links [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Sep 25, 2024
1 parent 27b5f52 commit 73e3e0b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
6 changes: 1 addition & 5 deletions frontend/packages/vkt/src/components/layouts/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export const Header = (): JSX.Element => {

const { isAuthenticated, isClerkUI, clerkUser, publicUser } =
useAuthentication();
const goodAndSatisfactoryLevelSupported =
useAppSelector(featureFlagsSelector).goodAndSatisfactoryLevel;
const logoRedirectURL = isAuthenticated
? AppRoutes.ClerkHomePage
: AppRoutes.PublicHomePage;
Expand Down Expand Up @@ -164,9 +162,7 @@ export const Header = (): JSX.Element => {
</div>
<div className="header__center">
{isAuthenticated && <ClerkNavTabs />}
{isPublicUrl && goodAndSatisfactoryLevelSupported && (
<PublicNavigationLinks />
)}
{isPublicUrl && <PublicNavigationLinks />}
</div>
<div className="header__right">
{isAuthenticated && <ClerkHeaderButtons />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,28 @@ exports[`Header should render Header correctly 1`] = `
</div>
<div
className="header__center"
/>
>
<nav
aria-label="header.accessibility.mainNavigation"
className="navigation-links"
>
<ul>
<li>
<a
aria-current={false}
href="/vkt/erinomainen-taito"
onClick={[Function]}
>
<p
className="MuiTypography-root MuiTypography-body1 css-ahj2mt-MuiTypography-root"
>
header.publicNavigationLinks.excellentLevel
</p>
</a>
</li>
</ul>
</nav>
</div>
<div
className="header__right"
>
Expand Down

0 comments on commit 73e3e0b

Please sign in to comment.