department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/21-0845/pages/veteranContactInfo.js

Summary

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

/** @type {PageSchema} */
export default {
  uiSchema: {
    veteranPhone: phoneUI(),
    veteranEmail: emailToSendNotificationsUI(),
  },
  schema: {
    type: 'object',
    required: ['veteranEmail'],
    properties: {
      veteranPhone: phoneSchema,
      veteranEmail: emailToSendNotificationsSchema,
    },
  },
};