department-of-veterans-affairs/vets-website

View on GitHub
src/applications/representative-appoint/pages/veteran/veteranContactMailingClaimant.js

Summary

Maintainability
A
0 mins
Test Coverage
import {
  addressSchema,
  addressUI,
  titleUI,
  titleSchema,
} from 'platform/forms-system/src/js/web-component-patterns';

export const uiSchema = {
  ...titleUI('Veteran’s mailing address'),
  veteranHomeAddress: addressUI({
    labels: {
      militaryCheckbox: `This address is on a United States military base outside of the U.S.`,
    },
  }),
};

export const schema = {
  type: 'object',
  properties: {
    titleSchema,
    veteranHomeAddress: addressSchema({
      omit: ['street3'],
    }),
  },
};