department-of-veterans-affairs/vets-website

View on GitHub
src/applications/appeals/10182/pages/boardReview.js

Summary

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

import {
  boardReviewTitle,
  boardReviewLabels,
  boardReviewDescriptions,
  boardReviewErrorMessage,
  BoardReviewReviewField,
} from '../content/boardReview';

const boardReview = {
  uiSchema: {
    boardReviewOption: {
      ...radioUI({
        title: boardReviewTitle,
        labelHeaderLevel: '3',
        labels: boardReviewLabels,
        descriptions: boardReviewDescriptions,
        required: () => true,
        enableAnalytics: true,
        errorMessages: {
          required: boardReviewErrorMessage,
        },
      }),
      'ui:reviewField': BoardReviewReviewField,
    },
  },

  schema: {
    type: 'object',
    required: ['boardReviewOption'],
    properties: {
      boardReviewOption: radioSchema([
        'direct_review',
        'evidence_submission',
        'hearing',
      ]),
    },
  },
};

export default boardReview;