department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/40-0247/pages/applicantContactInfo.js

Summary

Maintainability
A
0 mins
Test Coverage
import {
  titleUI,
  emailSchema,
  emailUI,
  phoneUI,
  phoneSchema,
} from 'platform/forms-system/src/js/web-component-patterns';

/** @type {PageSchema} */
export default {
  uiSchema: {
    ...titleUI(
      'Tell us how we can reach you if there’s a question about your request',
    ),
    applicantPhone: phoneUI(),
    applicantEmail: emailUI(),
  },
  schema: {
    type: 'object',
    properties: {
      applicantPhone: phoneSchema,
      applicantEmail: emailSchema,
    },
    required: ['applicantPhone'],
  },
};