department-of-veterans-affairs/vets-website

View on GitHub
src/applications/benefit-eligibility-questionnaire/pages/militaryServiceCompleted.js

Summary

Maintainability
A
2 hrs
Test Coverage
import React from 'react';

export default {
  uiSchema: {
    militaryServiceCompleted: {
      'ui:title': (
        <>
          <p>
            <b>
              Have you ever completed a previous period of military service?
            </b>
          </p>
        </>
      ),
      'ui:widget': 'radio',
      'ui:options': {
        widgetProps: {
          yes: { militaryServiceThree: 'yes' },
          no: {
            militaryServiceThree: 'no',
          },
        },
      },
    },
  },
  schema: {
    type: 'object',
    properties: {
      militaryServiceCompleted: {
        type: 'string',
        enum: ['Yes', 'No'],
      },
    },
  },
};