Skip to content

Commit

Permalink
hide sign out when OL disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
john-tco committed Nov 7, 2023
1 parent b9f5127 commit 34dd6ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/partials/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { authenticatedNavItems, navItems } from './links';
import { GovUKHeader } from './GovUKHeader';

const FEEDBACK_FORM_HREF = `https://docs.google.com/forms/d/e/1FAIpQLSe6H5atE1WQzf8Fzjti_OehNmTfY0Bv_poMSO-w8BPzkOqr-A/viewform?usp=sf_link`;
const ONE_LOGIN_ENABLED = process.env.ONE_LOGIN_ENABLED;

const MobileLink = ({ btn, index, pathname }) => (
<li
Expand Down Expand Up @@ -75,7 +76,7 @@ const BetaBlock = ({ isUserLoggedIn }: { isUserLoggedIn: boolean }) => (
</span>
</p>
</div>
{isUserLoggedIn && <SignOut />}
{isUserLoggedIn && ONE_LOGIN_ENABLED && <SignOut />}
</div>
</div>
</div>
Expand Down

0 comments on commit 34dd6ea

Please sign in to comment.