department-of-veterans-affairs/vets-website

View on GitHub
src/applications/financial-status-report/wizard/pages/Error.jsx

Summary

Maintainability
A
2 hrs
Test Coverage
import React, { useEffect } from 'react';
import recordEvent from 'platform/monitoring/record-event';
import { PAGE_NAMES } from '../constants';

const DebtError = () => {
  useEffect(() => {
    recordEvent({
      event: 'howToWizard-alert-displayed',
      'reason-for-alert': 'debt is due to an error',
    });
  }, []);

  return (
    <div className="vads-u-background-color--gray-lightest vads-u-padding--2 vads-u-margin-top--2">
      <h2
        className="vads-u-margin-top--0 vads-u-font-size--h6 vads-u-font-weight--normal vads-u-font-family--sans"
        id="wizard-results"
      >
        Based on the information you provided, this isn’t the form you need.
      </h2>
      <p>
        <strong className="vads-u-margin-x--0p5">
          If you think your debt or the amount of your debt is due to an error,
        </strong>
        you can dispute it. Submit a written statement to tell us why you
        dispute the debt.
      </p>
      <p>You can submit your dispute statement online or by mail.</p>
      <ul>
        <li>
          <strong>Online: </strong>
          <a
            href="https://www.va.gov/contact-us/"
            className="vads-u-margin-left--0p5"
            onClick={() => {
              recordEvent({
                event: 'howToWizard-alert-link-click',
                'howToWizard-alert-link-click-label':
                  'Contact us through Ask VA',
              });
            }}
          >
            Contact us through Ask VA
          </a>
        </li>
        <li>
          <strong>Mail: </strong>
          <div>Debt Management Center</div>
          <div>P.O. Box 11930</div>
          <div>St. Paul, MN 55111-0930</div>
        </li>
      </ul>
      <p>
        <strong>Note: </strong>
        You have <strong>180 days</strong> from the date you received your first
        debt letter to submit your dispute statement. After this time, we can’t
        consider the request.
      </p>
      <p>
        We encourage you to submit your dispute statement within
        <strong className="vads-u-margin-left--0p5">30 days</strong>. If we
        receive the statement within 30 days, we won’t add late fees and
        interest, or take other collection action, while we review your dispute.
      </p>
    </div>
  );
};

export default {
  name: PAGE_NAMES.error,
  component: DebtError,
};