Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes mhv button on sign-in modal for staging #33830

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 0 additions & 2 deletions src/platform/user/authentication/config/staging.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export default {
logingov: true,
},
legacySignInProviders: {
mhv: false,
dslogon: false,
},
isMobile: false,
Expand All @@ -118,7 +117,6 @@ export default {
logingov: true,
},
legacySignInProviders: {
mhv: false,
dslogon: false,
},
isMobile: false,
Expand Down
Loading