Skip to content

Commit

Permalink
♻️ [open-formulieren/open-forms#4929] Move SubmissionSummary route to…
Browse files Browse the repository at this point in the history
… static route declarations
  • Loading branch information
sergei-maertens committed Jan 17, 2025
1 parent f6e2537 commit 7b96f50
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/components/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import Loader from 'components/Loader';
import {ConfirmationView, StartPaymentView} from 'components/PostCompletionViews';
import ProgressIndicator from 'components/ProgressIndicator';
import RequireSubmission from 'components/RequireSubmission';
import {SessionTrackerModal} from 'components/Sessions';
import {SubmissionSummary} from 'components/Summary';
import {
PI_TITLE,
START_FORM_QUERY_PARAM,
Expand Down Expand Up @@ -278,17 +276,6 @@ const Form = () => {
// Route the correct page based on URL
const router = (
<Routes>
<Route
path="overzicht"
element={
<ErrorBoundary useCard>
<SessionTrackerModal>
<RequireSubmission retrieveSubmissionFromContext component={SubmissionSummary} />
</SessionTrackerModal>
</ErrorBoundary>
}
/>

<Route
path="betalen"
element={
Expand Down
13 changes: 13 additions & 0 deletions src/components/formRoutes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import FormStep from 'components/FormStep';
import IntroductionPage from 'components/IntroductionPage';
import RequireSubmission from 'components/RequireSubmission';
import {SessionTrackerModal} from 'components/Sessions';
import {SubmissionSummary} from 'components/Summary';

const formRoutes = [
{
Expand Down Expand Up @@ -35,6 +36,18 @@ const formRoutes = [
</ErrorBoundary>
),
},
{
path: 'overzicht',
element: (
<ErrorBoundary useCard>
<SessionTrackerModal>
<RequireSubmission retrieveSubmissionFromContext>
<SubmissionSummary />
</RequireSubmission>
</SessionTrackerModal>
</ErrorBoundary>
),
},
];

export default formRoutes;

0 comments on commit 7b96f50

Please sign in to comment.