department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/21-0966/pages/survivingDependentPersonalInformation.js

Summary

Maintainability
A
1 hr
Test Coverage
import {
  dateOfBirthSchema,
  dateOfBirthUI,
  fullNameNoSuffixSchema,
  fullNameNoSuffixUI,
  titleUI,
} from 'platform/forms-system/src/js/web-component-patterns';

/** @type {PageSchema} */
export default {
  uiSchema: {
    ...titleUI('Name and date of birth'),
    survivingDependentFullName: fullNameNoSuffixUI(),
    survivingDependentDateOfBirth: dateOfBirthUI(),
  },
  schema: {
    type: 'object',
    properties: {
      survivingDependentFullName: fullNameNoSuffixSchema,
      survivingDependentDateOfBirth: dateOfBirthSchema,
    },
    required: ['survivingDependentFullName', 'survivingDependentDateOfBirth'],
  },
};