department-of-veterans-affairs/vets-website

View on GitHub
src/applications/disability-benefits/all-claims/components/PrivateProviderTreatmentView.jsx

Summary

Maintainability
A
1 hr
Test Coverage
import PropTypes from 'prop-types';
import React from 'react';

import { formatDateRange } from '../utils';

export default function PrivateProviderTreatmentView({ formData }) {
  return (
    <div>
      <strong>{formData.providerFacilityName}</strong>
      <p>{formatDateRange(formData.treatmentDateRange)}</p>
    </div>
  );
}

PrivateProviderTreatmentView.propTypes = {
  formData: PropTypes.shape({
    providerFacilityName: PropTypes.string,
    treatmentDateRange: PropTypes.shape({
      from: PropTypes.string,
      to: PropTypes.string,
    }),
  }),
};