department-of-veterans-affairs/vets-website

View on GitHub
src/applications/claims-status/containers/ClaimEstimationPage.jsx

Summary

Maintainability
A
3 hrs
Test Coverage
import React from 'react';
import { connect } from 'react-redux';

import CallVBACenter from '@department-of-veterans-affairs/platform-static-data/CallVBACenter';

import NeedHelp from '../components/NeedHelp';
import ClaimsBreadcrumbs from '../components/ClaimsBreadcrumbs';
import { setDocumentTitle } from '../utils/helpers';
import { setUpPage } from '../utils/page';

class ClaimEstimationPage extends React.Component {
  componentDidMount() {
    setDocumentTitle('How We Come Up with Your Estimated Decision Date');
    setUpPage();
  }

  render() {
    const crumbs = [
      {
        href: `../status`,
        label: 'Status details',
        isRouterLink: true,
      },
      {
        href: `../claim-estimate`,
        label: 'Estimated decision date',
        isRouterLink: true,
      },
    ];

    return (
      <div className="row">
        <div className="usa-width-two-thirds medium-8 columns">
          <ClaimsBreadcrumbs crumbs={crumbs} />
          <div>
            <h1>How we come up with your estimated decision date</h1>
            <p className="first-of-type">
              We look at every claim carefully before making a decision.
              Sometimes we can decide quickly, but more complex claims take
              longer to review.
            </p>
            <h2 className="claims-paragraph-header">
              We base your estimated decision date on:
            </h2>
            <ul>
              <li>The type of claim you submitted</li>
              <li>The number of claims you submitted</li>
              <li>Whether there were any unusual circumstances</li>
              <li>How long it took us to decide other claims like yours</li>
              <li>How long it takes us to get supporting documents</li>
            </ul>
            <h2 className="claims-paragraph-header">
              Estimated dates may change when:
            </h2>
            <ul>
              <li>You upload optional evidence that we need to process</li>
              <li>
                You filed a second claim that we combined with an existing claim
              </li>
              <li>We decide we need more evidence that supports your claim</li>
              <li>We have a high volume of claims that we weren’t expecting</li>
            </ul>
            <h2 className="claims-paragraph-header">
              When we don’t meet the estimated decision date:
            </h2>
            <p>
              The above reasons sometimes result in your claim needing
              additional time that exceeds the estimated completion date. We are
              working to process your claim as quickly as possible.
            </p>
            <h2 className="claims-paragraph-header">
              When we don’t give you an estimated decision date:
            </h2>
            <p>
              Sometimes we can’t estimate the decision date because we don’t
              have enough information. We can give you an estimated decision
              date after we have gathered all the information we need.
            </p>
          </div>
          <p>
            You can help speed up the process by promptly and electronically
            uploading the documents requested by VA.
          </p>
          <p>
            If you have questions, <CallVBACenter />
          </p>
          <NeedHelp />
        </div>
      </div>
    );
  }
}

function mapStateToProps(state) {
  const claimsState = state.disability.status;
  return {
    loading: claimsState.claimDetail.loading,
    claim: claimsState.claimDetail.detail,
  };
}

export default connect(mapStateToProps)(ClaimEstimationPage);