department-of-veterans-affairs/vets-website

View on GitHub
src/applications/hca/config/chapters/militaryService/toxicExposure.js

Summary

Maintainability
A
0 mins
Test Coverage
import fullSchemaHca from 'vets-json-schema/dist/10-10EZ-schema.json';
import ToxicExposureDescription from '../../../components/FormDescriptions/ToxicExposureDescription';

const { hasTeraResponse } = fullSchemaHca.properties;

export default {
  uiSchema: {
    'ui:title': 'Toxic exposure',
    'ui:description': ToxicExposureDescription,
    hasTeraResponse: {
      'ui:title':
        'Do you want to answer questions about your military service history and exposure to any toxins or other hazards?',
      'ui:widget': 'yesNo',
    },
  },
  schema: {
    type: 'object',
    required: ['hasTeraResponse'],
    properties: {
      hasTeraResponse,
    },
  },
};