src/applications/edu-benefits/1995/containers/ConfirmationPage.jsx
import React from 'react';
import { connect } from 'react-redux';
import scrollToTop from 'platform/utilities/ui/scrollToTop';
import { focusElement } from 'platform/utilities/ui';
import { benefitsLabels } from '../../utils/labels';
import { ConfirmationPageContent } from '../../components/ConfirmationPageContent';
class ConfirmationPage extends React.Component {
constructor(props) {
super(props);
this.state = { isExpanded: false };
}
componentDidMount() {
focusElement('.confirmation-page-title');
scrollToTop('topScrollElement');
}
render() {
const form = this.props.form;
const { submission, formId } = form;
const { benefit } = form.data;
return (
<ConfirmationPageContent
claimInfoListItems={[
<li key={'benefit'}>
<strong>Benefit to be transferred</strong>
<br />
{benefitsLabels[benefit]}
</li>,
]}
docExplanationHeader="No documents required at this time"
docExplanation={
<>
<p>In the future, you might need:</p>
<ul>
<li>Your reserve kicker</li>
<li>
Documentation of additional contributions that would increase
your monthly benefits
</li>
</ul>
<p>
<a href="/contact-us/">
You can update your documents online through Ask VA
</a>
</p>
</>
}
formId={formId}
name={form.data.veteranFullName}
submission={submission}
/>
);
}
}
function mapStateToProps(state) {
return {
form: state.form,
};
}
export default connect(mapStateToProps)(ConfirmationPage);
export { ConfirmationPage };