department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/mock-simple-forms-patterns/pages/mockTextEmailPhone.js

Summary

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

/** @type {PageSchema} */
export default {
  uiSchema: {
    ...titleUI('Web component v3 email and phone'),
    wcv3TextEmailNew: emailUI({
      description:
        'By providing an email address, I agree to receive electronic correspondence from VA regarding my application',
    }),
    wcv3TextPhoneNew: phoneUI(),
  },
  schema: {
    type: 'object',
    properties: {
      wcv3TextEmailNew: emailSchema,
      wcv3TextPhoneNew: phoneSchema,
    },
    required: ['wcv3TextEmailNew'],
  },
};