department-of-veterans-affairs/vets-website

View on GitHub
src/applications/representative-appoint/components/AddressAuthorizationDescription.jsx

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import { getRepType } from '../utilities/helpers';

const AddressAuthorizationDescription = ({ formData }) => {
  return (
    <>
      <h3>Authorization to change your address</h3>
      <p className="appoint-text">
        This accredited {getRepType(formData['view:selectedRepresentative'])}{' '}
        can help you change the address on your VA records. If the address on
        your VA records is incorrect or outdated, it may take us longer to
        contact you and process your benefit claims.
      </p>
    </>
  );
};

AddressAuthorizationDescription.propTypes = {
  formData: PropTypes.object,
};

export { AddressAuthorizationDescription };