src/applications/personalization/review-information/containers/ConfirmationPage.jsx
import React, { useEffect } from 'react';
import { focusElement } from 'platform/utilities/ui';
export const ConfirmationPage = () => {
// Set focus
useEffect(() => {
// Wait a moment before setting focus to avoid an issue where focus would otherwise reset to the body element
setTimeout(() => {
focusElement('#confirmation-heading');
}, 250);
}, []);
return (
<>
<div className="vads-u-margin-bottom--4">
<va-alert
status="success"
id="welcome-va-setup-review-information-confirmation-alert"
>
<h2 id="confirmation-heading" slot="headline">
Contact information added to your profile
</h2>
<p className="vads-u-margin-y--2">
If you apply for VA benefits, we’ll use this information to contact
you with important information about your benefits and how to manage
them.
</p>
<p className="vads-u-margin-y--3">
You can change your email and text notification settings in your
profile.
</p>
<va-link-action
href="https://www.va.gov/profile/notifications"
label="Notification settings link"
text="Go to your notification settings in your VA.gov profile"
/>
</va-alert>
</div>
<div className="vads-u-display--block">
<va-link-action
href="https://www.va.gov/my-va/"
text="Go back to My VA"
type="secondary"
/>
</div>
<div className="vads-u-display--block vads-u-margin-bottom--9">
<va-link-action
href="https://www.va.gov/profile"
text="Go back to your profile"
type="secondary"
/>
</div>
</>
);
};
export default ConfirmationPage;