From 73e3e0bf864bb15a9fc9d42229b7d1f7903ba88f Mon Sep 17 00:00:00 2001 From: Pyry Koivisto Date: Wed, 25 Sep 2024 11:57:52 +0300 Subject: [PATCH] VKT(Frontend): Always show navigation links [deploy] --- .../vkt/src/components/layouts/Header.tsx | 6 +---- .../__snapshots__/Header.test.tsx.snap | 23 ++++++++++++++++++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/frontend/packages/vkt/src/components/layouts/Header.tsx b/frontend/packages/vkt/src/components/layouts/Header.tsx index 520db4e88..4857acaf4 100644 --- a/frontend/packages/vkt/src/components/layouts/Header.tsx +++ b/frontend/packages/vkt/src/components/layouts/Header.tsx @@ -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; @@ -164,9 +162,7 @@ export const Header = (): JSX.Element => {
{isAuthenticated && } - {isPublicUrl && goodAndSatisfactoryLevelSupported && ( - - )} + {isPublicUrl && }
{isAuthenticated && } diff --git a/frontend/packages/vkt/src/tests/jest/components/layouts/__snapshots__/Header.test.tsx.snap b/frontend/packages/vkt/src/tests/jest/components/layouts/__snapshots__/Header.test.tsx.snap index 5f449f0b4..728cf84ef 100644 --- a/frontend/packages/vkt/src/tests/jest/components/layouts/__snapshots__/Header.test.tsx.snap +++ b/frontend/packages/vkt/src/tests/jest/components/layouts/__snapshots__/Header.test.tsx.snap @@ -45,7 +45,28 @@ exports[`Header should render Header correctly 1`] = `
+ > + +