department-of-veterans-affairs/vets-website

View on GitHub
src/applications/ezr/config/chapters/insuranceInformation/medicare.js

Summary

Maintainability
A
2 hrs
Test Coverage
import {
  yesNoUI,
  yesNoSchema,
} from 'platform/forms-system/src/js/web-component-patterns';
import MedicarePartADescription from '../../../components/FormDescriptions/MedicarePartADescription';
import content from '../../../locales/en/content.json';

export default {
  uiSchema: {
    'view:isEnrolledMedicarePartA': {
      'ui:title': MedicarePartADescription,
      isEnrolledMedicarePartA: yesNoUI(content['insurance-medicare-title']),
    },
  },
  schema: {
    type: 'object',
    properties: {
      'view:isEnrolledMedicarePartA': {
        type: 'object',
        required: ['isEnrolledMedicarePartA'],
        properties: {
          isEnrolledMedicarePartA: yesNoSchema,
        },
      },
    },
  },
};