department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/21-0845/containers/App.jsx

Summary

Maintainability
A
55 mins
Test Coverage
import React from 'react';

import PropTypes from 'prop-types';

import RoutedSavableApp from 'platform/forms/save-in-progress/RoutedSavableApp';

import formConfig from '../config/form';

export default function App({ location, children }) {
  return (
    <RoutedSavableApp formConfig={formConfig} currentLocation={location}>
      {children}
    </RoutedSavableApp>
  );
}

App.propTypes = {
  children: PropTypes.element.isRequired,
  location: PropTypes.object.isRequired,
};