department-of-veterans-affairs/vets-website

View on GitHub
src/applications/static-pages/dependency-verification/components/dependencyVerificationFooter.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';

const DependencyVerificationFooter = ({ handleCloseAndUpdateDiaries }) => {
  return (
    <div>
      <button
        className="usa-button-secondary"
        onClick={() => {
          handleCloseAndUpdateDiaries(true);
        }}
        type="button"
      >
        This is correct
      </button>
      <button
        onClick={() => {
          handleCloseAndUpdateDiaries(false);
        }}
        type="button"
      >
        Add or remove dependents
      </button>
    </div>
  );
};

DependencyVerificationFooter.propTypes = {
  handleCloseAndUpdateDiaries: PropTypes.func,
};

export default DependencyVerificationFooter;