src/applications/appeals/995/pages/housingRisk.js
import {
yesNoSchema,
yesNoUI,
} from 'platform/forms-system/src/js/web-component-patterns';
import { housingRiskTitle } from '../content/livingSituation';
import { isOnReviewPage } from '../../shared/utils/helpers';
export default {
uiSchema: {
housingRisk: yesNoUI({
title: housingRiskTitle,
enableAnalytics: true,
labelHeaderLevel: '3',
labels: {
Y: 'Yes',
N: 'No',
},
updateUiSchema: () => ({
'ui:options': {
labelHeaderLevel: isOnReviewPage() ? 4 : 3,
},
}),
}),
},
schema: {
type: 'object',
properties: {
housingRisk: yesNoSchema,
},
},
};