diff --git a/src/targets/intents/index.jsx b/src/targets/intents/index.jsx index 6699b0a6..11c1f06a 100644 --- a/src/targets/intents/index.jsx +++ b/src/targets/intents/index.jsx @@ -24,17 +24,19 @@ import setupApp from 'src/targets/browser/setupApp' import { EditLoader } from 'src/components/Views/Edit' import { AppProviders } from 'src/components/AppProviders' import ErrorBoundary from 'src/components/Views/ErrorBoundary' +import ContactEdit from 'src/components/Views/ContactEdit' +import InformationEdit from 'src/components/Views/InformationEdit' -export const IntentWrapper = () => { +export const IntentWrapper = ({ Component }) => { const { service } = useIntent() - return + return } const IntentLoader = () => { const { data } = useIntent() - return + return } const makeRoutes = ({ client, intentId, ...rest }) => [ @@ -57,7 +59,17 @@ const makeRoutes = ({ client, intentId, ...rest }) => [ }, { path: ':qualificationLabel/:fileId', - element: , + element: , + errorElement: + }, + { + path: ':qualificationLabel/:fileId/edit/information', + element: , + errorElement: + }, + { + path: ':qualificationLabel/:fileId/edit/contact', + element: , errorElement: } ]