src/applications/simple-forms/21-0966/pages/reviewVeteranEmailAddress.js
import React from 'react';
import {
emailToSendNotificationsSchema,
emailToSendNotificationsUI,
titleUI,
} from 'platform/forms-system/src/js/web-component-patterns';
/** @type {PageSchema} */
export default {
uiSchema: {
...titleUI('Email address'),
veteranEmail: emailToSendNotificationsUI(),
'view:additionalInfo': {
'ui:description': (
<p className="vads-u-margin-top--4">
You can also change this information in your VA.gov profile.
<va-link
href="/profile/contact-information"
text="Update your VA.gov profile"
external
/>
</p>
),
},
},
schema: {
type: 'object',
properties: {
veteranEmail: emailToSendNotificationsSchema,
'view:additionalInfo': {
type: 'object',
properties: {},
},
},
required: ['veteranEmail'],
},
};