Skip to content

Commit

Permalink
add submissionsummartV2 for cmsRoutes
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Apr 18, 2024
1 parent e3ae827 commit 7ee8429
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions services/app-web/src/pages/App/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const StateUserRoutes = ({
<SubmissionSummary />
)
}
/>
/>
<Route
path={RoutesRecord.SUBMISSIONS_EDIT_TOP_LEVEL}
element={<StateSubmissionForm />}
Expand Down Expand Up @@ -184,6 +184,11 @@ const CMSUserRoutes = ({
showQuestionResponse: boolean
stageName?: string
}): React.ReactElement => {
const ldClient = useLDClient()
const useLinkedRates = ldClient?.variation(
featureFlags.LINK_RATES.flag,
featureFlags.LINK_RATES.defaultValue
)
return (
<AuthenticatedRouteWrapper authMode={authMode} setAlert={setAlert}>
<Routes>
Expand Down Expand Up @@ -227,7 +232,13 @@ const CMSUserRoutes = ({
)}
<Route
path={RoutesRecord.SUBMISSIONS_SUMMARY}
element={<SubmissionSummary />}
element={
useLinkedRates ? (
<SubmissionSummaryV2 />
) : (
<SubmissionSummary />
)
}
/>
</Route>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const ReviewSubmitV2 = (): React.ReactElement => {
contractFormData.programIDs,
programs
) || ''

return (
<>
<div className={styles.stepIndicator}>
Expand Down

0 comments on commit 7ee8429

Please sign in to comment.