department-of-veterans-affairs/vets-website

View on GitHub
src/applications/income-and-asset-statement/config/chapters/01-veteran-information/applicantIsVeteran.js

Summary

Maintainability
A
0 mins
Test Coverage
import {
  yesNoUI,
  yesNoSchema,
} from 'platform/forms-system/src/js/web-component-patterns';

/** @type {PageSchema} */
export default {
  title: 'Veteran information',
  path: 'veteran/information/applicant',
  uiSchema: {
    'view:applicantIsVeteran': yesNoUI({
      title: 'Are you the Veteran?',
    }),
  },
  schema: {
    type: 'object',
    required: ['view:applicantIsVeteran'],
    properties: {
      'view:applicantIsVeteran': yesNoSchema,
    },
  },
};