src/applications/representative-appoint/pages/veteran/veteranContactMailingClaimant.js
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,
profileNotUpdatedNote: { type: 'object', properties: {} },
veteranHomeAddress: {
...addressSchema({ omit: ['street3'] }),
properties: {
...addressSchema({ omit: ['street3'] }).properties,
street: {
type: 'string',
maxLength: 30,
},
street2: {
type: 'string',
maxLength: 5,
},
city: {
type: 'string',
maxLength: 18,
},
state: {
type: 'string',
maxLength: 2,
},
postalCode: {
type: 'string',
maxLength: 9,
},
},
},
},
};