-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update-comp-lib-37-1
- Loading branch information
Showing
57 changed files
with
1,091 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,20 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import FormFooter from 'platform/forms/components/FormFooter'; | ||
import SubTask from 'platform/forms/sub-task'; | ||
import { toggleValues } from 'platform/site-wide/feature-toggles/selectors'; | ||
import FEATURE_FLAG_NAMES from 'platform/utilities/feature-toggles/featureFlagNames'; | ||
|
||
import pages from './pages'; | ||
import formConfig from '../config/form'; | ||
import { WIP } from '../components/WIP'; | ||
|
||
export const SubTaskContainer = ({ show995, isLoadingFeatures }) => { | ||
if (isLoadingFeatures) { | ||
return ( | ||
<h1 className="vads-u-font-family--sans vads-u-font-size--base vads-u-font-weight--normal vads-u-margin-bottom--4"> | ||
<va-loading-indicator message="Loading application..." /> | ||
</h1> | ||
); | ||
} | ||
|
||
return show995 ? ( | ||
export const SubTaskContainer = () => { | ||
return ( | ||
<article data-page="start" className="row"> | ||
<div className="usa-width-two-thirds medium-8 columns vads-u-margin-bottom--2"> | ||
<SubTask pages={pages} /> | ||
</div> | ||
<FormFooter formConfig={formConfig} /> | ||
</article> | ||
) : ( | ||
<WIP /> | ||
); | ||
}; | ||
|
||
SubTaskContainer.propTypes = { | ||
isLoadingFeatures: PropTypes.bool, | ||
show995: PropTypes.bool, | ||
}; | ||
|
||
const mapStateToProps = state => ({ | ||
isLoadingFeatures: toggleValues(state).loading, | ||
show995: toggleValues(state)[FEATURE_FLAG_NAMES.supplementalClaim] || false, | ||
}); | ||
|
||
export default connect(mapStateToProps)(SubTaskContainer); | ||
export default SubTaskContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 12 additions & 7 deletions
19
src/applications/disability-benefits/all-claims/content/toxicExposure.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.