src/applications/pensions/config/chapters/02-military-history/hasOtherNames.js
import {
titleUI,
yesNoUI,
} from 'platform/forms-system/src/js/web-component-patterns';
import fullSchemaPensions from 'vets-json-schema/dist/21P-527EZ-schema.json';
import { showMultiplePageResponse } from '../../../helpers';
const { serveUnderOtherNames } = fullSchemaPensions.properties;
/** @type {PageSchema} */
export default {
title: 'Other service names',
path: 'military/other-names',
depends: () => !showMultiplePageResponse(),
uiSchema: {
...titleUI('Other service names'),
serveUnderOtherNames: yesNoUI({
title: 'Did you serve under another name?',
classNames: 'vads-u-margin-bottom--2',
}),
},
schema: {
type: 'object',
required: ['serveUnderOtherNames'],
properties: {
serveUnderOtherNames,
},
},
};