File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,11 @@ export const App = () => (
3434 < Route
3535 path = ':pageKey'
3636 element = {
37- < PresentationComponent type = { PresentationType . Stateless } >
38- < Form />
39- </ PresentationComponent >
37+ < FormProvider >
38+ < PresentationComponent type = { PresentationType . Stateless } >
39+ < Form />
40+ </ PresentationComponent >
41+ </ FormProvider >
4042 }
4143 />
4244 < Route
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { Navigate, Outlet } from 'react-router-dom';
33
44import { Loader } from 'src/core/loading/Loader' ;
55import { useApplicationMetadata } from 'src/features/applicationMetadata/ApplicationMetadataProvider' ;
6- import { FormProvider } from 'src/features/form/FormContext' ;
76import { InstantiateContainer } from 'src/features/instantiate/containers/InstantiateContainer' ;
87import { NoValidPartiesError } from 'src/features/instantiate/containers/NoValidPartiesError' ;
98import {
@@ -31,11 +30,7 @@ const ShowOrInstantiate: React.FC<{ show: ShowTypes }> = ({ show }) => {
3130 }
3231
3332 // If the show type is something else, it points to a layout set that describes a stateless form.
34- return (
35- < FormProvider >
36- < Outlet />
37- </ FormProvider >
38- ) ;
33+ return < Outlet /> ;
3934} ;
4035
4136export const Entrypoint = ( ) => {
@@ -55,11 +50,7 @@ export const Entrypoint = () => {
5550 // Anonymous stateless app. No need to log in and select party, but cannot create a new instance.
5651 // The regular stateless mode (where you have to log in) is handled in ShowOrInstantiate, after the party is
5752 // selected and valid.
58- return (
59- < FormProvider >
60- < Outlet />
61- </ FormProvider >
62- ) ;
53+ return < Outlet /> ;
6354 }
6455
6556 if ( ! profile ) {
You can’t perform that action at this time.
0 commit comments