department-of-veterans-affairs/vets-website

View on GitHub
src/applications/ivc-champva/10-7959C/components/FileUploadWrapper.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import FileFieldCustom from '../../shared/components/fileUploads/FileUpload';
import { requiredFiles, UPLOADS_COMPLETE_PATH } from '../config/constants';

// Wrap shared fileFieldCustom so we can pass the form-specific
// list of required uploads (for use with MissingFileOverview)
export default function FileFieldWrapped(props) {
  return FileFieldCustom({
    ...props,
    requiredFiles,
    // Since `MissingFileOverview` isn't the last page in this form, go to the
    // appropriate next page after all uploads are complete:
    uploadsCompletePath: UPLOADS_COMPLETE_PATH,
  });
}