Skip to content

Commit

Permalink
removes mhv button on sign-in modal for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitHawk committed Jan 2, 2025
1 parent c3a24b1 commit 22515e5
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions src/platform/user/authentication/components/LoginActions.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import environment from '@department-of-veterans-affairs/platform-utilities/environment';
import { externalApplicationsConfig } from '../usip-config';
import { reduceAllowedProviders, getQueryParams } from '../utilities';
import LoginButton from './LoginButton';
Expand All @@ -25,6 +26,7 @@ export default function LoginActions({ externalApplication, isUnifiedSignIn }) {

const actionLocation = isUnifiedSignIn ? 'usip' : 'modal';
const isValid = mhv || dslogon;
const isStaging = environment?.isStaging();

return (
<div className="row">
Expand All @@ -41,28 +43,30 @@ export default function LoginActions({ externalApplication, isUnifiedSignIn }) {
{isValid && (
<div>
<h2>Other sign-in options</h2>
{mhv && (
<>
<h3 id="mhvH3">
My HealtheVet sign-in option
<span className="vads-u-display--block vads-u-font-size--md vads-u-font-family--sans">
Available through January 31, 2025
</span>
</h3>
<p>
You’ll still be able to use the <strong>My HealtheVet</strong>{' '}
website after this date. You’ll just need to start signing in
with a <strong>Login.gov</strong> or <strong>ID.me</strong>{' '}
account.
</p>
<LoginButton
csp="mhv"
useOAuth={useOAuth}
ariaDescribedBy="mhvH3"
actionLocation={actionLocation}
/>
</>
)}
{mhv &&
!isStaging(
<>
<h3 id="mhvH3">
My HealtheVet sign-in option
<span className="vads-u-display--block vads-u-font-size--md vads-u-font-family--sans">
Available through January 31, 2025
</span>
</h3>
<p>
You’ll still be able to use the{' '}
<strong>My HealtheVet</strong> website after this date.
You’ll just need to start signing in with a{' '}
<strong>Login.gov</strong> or <strong>ID.me</strong>{' '}
account.
</p>
<LoginButton
csp="mhv"
useOAuth={useOAuth}
ariaDescribedBy="mhvH3"
actionLocation={actionLocation}
/>
</>,
)}
{dslogon && (
<>
<h3
Expand Down

0 comments on commit 22515e5

Please sign in to comment.