department-of-veterans-affairs/vets-website

View on GitHub
src/applications/survivor-dependent-education-benefit/22-5490/components/confirmation/UnderReviewConfirmationFry.jsx

Summary

Maintainability
F
4 days
Test Coverage
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';

const UnderReviewConfirmation = ({ user, printPage, dateReceived }) => {
  useEffect(() => {
    // Logic for sending confirmation email or any other setup if needed
  }, []);

  return (
    <>
      <div className="vads-u-margin-bottom--6">
        <va-alert
          close-btn-aria-label="Close notification"
          status="success"
          visible
        >
          <h3 slot="headline">We’ve received your application</h3>
          <div>
            Your application requires additional review. Once we have reviewed
            your application, we will reach out to notify you about next steps.
          </div>
        </va-alert>
      </div>
      <div className="vads-u-margin-bottom--6">
        <va-alert
          background-only
          close-btn-aria-label="Close notification"
          status="info"
          visible
        >
          <div>
            <h3
              slot="headline"
              className="vads-u-margin-top--2 vads-u-margin-bottom--4"
            >
              Application for VA Education Benefits (VA Form 22-5490)
            </h3>
            <h3>FRY, Chapter 33</h3>
            For {user}
            <div className="vads-u-display--flex vads-u-flex-direction--column">
              <strong>Date received</strong>
              {dateReceived}
            </div>
            <br />
            <va-button
              uswds
              className="usa-button vads-u-margin-top--3 vads-u-width--auto"
              text="Print this page"
              onClick={printPage}
            />
          </div>
        </va-alert>
      </div>
      <div className="vads-u-margin-bottom--4">
        <h2>When will I hear back about my application?</h2>
        <va-alert
          background-only
          close-btn-aria-label="Close notification"
          status="continue"
          visible
        >
          <div>
            <h2 className="vads-u-margin-y--0">In 1 month</h2>
            <hr className="meb-hr" />
            If more than a month has passed since you gave us your application
            and you haven’t heard back, please don’t apply again. Contact us
            through{' '}
            <a
              href="https://ask.va.gov"
              target="_blank"
              rel="noopener noreferrer"
            >
              Ask VA
            </a>
            .
          </div>
        </va-alert>
      </div>
      <div className="vads-u-margin-bottom--4">
        <h2>What happens next?</h2>
        <ul>
          <li>
            We’ll review your eligibility for the Fry Scholarship (Chapter 33).
          </li>
          <li>We may reach out with questions about your application.</li>
          <li>
            We’ll notify you if you’re eligible for other VA education benefits.
          </li>
          <li>We don’t require further action from you at this time.</li>
        </ul>
      </div>
      <div className="vads-u-margin-bottom--4">
        <h2>What can I do while I wait?</h2>
        <ul>
          <li>
            If you need to submit documentation to VA, such as service records,
            please send this through <a href="/contact-us">Ask VA</a>.
          </li>
          <li>
            Review and/or update your direct deposit information on{' '}
            <a href="/change-direct-deposit/">your VA.gov profile</a>.
          </li>
          <li>
            Use our{' '}
            <a href="/education/gi-bill-comparison-tool/">
              GI Bill Comparison Tool
            </a>{' '}
            to help you decide which education program and school is best for
            you.
          </li>
          <li>
            Learn more about VA benefits and programs through the{' '}
            <a href="https://blogs.va.gov/VAntage/78073/new-guide-series-provides-gi-bill-benefits-information/">
              Building Your Future with the GI Bill Series
            </a>
            .
          </li>
        </ul>
      </div>
    </>
  );
};

UnderReviewConfirmation.propTypes = {
  printPage: PropTypes.func.isRequired,
  user: PropTypes.string.isRequired,
  dateReceived: PropTypes.string,
};

UnderReviewConfirmation.defaultProps = {
  dateReceived: null,
};

export default UnderReviewConfirmation;