src/applications/vre/28-1900/wizard/pages/service-member/02-yesVaMemorandum.jsx
import React, { useEffect } from 'react';
import { Link } from 'react-router';
import { WIZARD_STATUS_COMPLETE } from 'platform/site-wide/wizard';
import { WIZARD_STATUS } from 'applications/vre/28-1900/constants';
import recordEvent from 'platform/monitoring/record-event';
import { serviceMemberPathPageNames } from '../pageList';
const YesVaMemorandum = props => {
const { setWizardStatus } = props;
useEffect(
() => {
setWizardStatus(WIZARD_STATUS_COMPLETE);
},
[setWizardStatus],
);
return (
<div
id={serviceMemberPathPageNames.yesVaMemorandum}
className="vads-u-margin-top--2 vads-u-padding--3 vads-u-background-color--gray-lightest"
aria-live="polite"
aria-atomic="true"
>
<p className="vads-u-margin--0" id="orientation-complete-notification">
<span className="vads-u-display--block vads-u-margin-y--1">
Based on your answers, you can apply for VR&E benefits.
</span>
<strong>Before you apply,</strong> go through the VR&E orientation
below. If you already know you want to apply for VR&E, you can go
directly to the online application without going through the orientation
below.{' '}
</p>
<Link
aria-describedby="orientation-complete-notification"
onClick={() => {
recordEvent({
event: 'howToWizard-skip-orientation',
});
sessionStorage.setItem(WIZARD_STATUS, WIZARD_STATUS_COMPLETE);
}}
to="/"
className="vads-c-action-link--green"
>
Apply for Veteran Readiness and Employment with VA Form 28-1900
</Link>
</div>
);
};
export default {
name: serviceMemberPathPageNames.yesVaMemorandum,
component: YesVaMemorandum,
};