src/applications/representative-appoint/pages/veteran/veteranServiceInformation.js
import {
radioSchema,
radioUI,
titleUI,
titleSchema,
} from '~/platform/forms-system/src/js/web-component-patterns';
import { branchOptions } from '../../constants/options';
import { preparerIsVeteran } from '../../utilities/helpers';
export const uiSchema = {
...titleUI(
({ formData }) =>
`${
preparerIsVeteran({ formData }) ? 'Your' : 'Veteran’s'
} service information`,
),
'Branch of Service': radioUI('Branch of service'),
};
export const schema = {
type: 'object',
properties: {
titleSchema,
'Branch of Service': radioSchema(branchOptions),
},
required: ['Branch of Service'],
};