File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed
scripts/installer/frameworks/react/src/ui-framework/mui Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,30 @@ import React from 'react';
5
5
import AdapterMoment from '@mui/lab/AdapterMoment' ;
6
6
import LocalizationProvider from '@mui/lab/LocalizationProvider' ;
7
7
8
+ const LocalizationProviderContext : any = LocalizationProvider ;
9
+
8
10
const FormContextWrapper = ( {
9
11
RenderFormButtons,
10
12
children,
11
13
actionButtonPos,
12
14
hasPageLayoutSteps,
13
15
isFormLoading
14
- } ) => ( < >
15
- {
16
- ! isFormLoading && ( actionButtonPos === 'top' && ! hasPageLayoutSteps ) && (
17
- < RenderFormButtons />
18
- )
19
- }
20
- < LocalizationProvider dateAdapter = { AdapterMoment } >
21
- { children }
22
- </ LocalizationProvider >
23
- {
24
- ! isFormLoading && ( ! actionButtonPos && ! hasPageLayoutSteps ) && (
25
- < RenderFormButtons />
16
+ } ) => (
17
+ < >
18
+ {
19
+ ! isFormLoading && ( actionButtonPos === 'top' && ! hasPageLayoutSteps ) && (
20
+ < RenderFormButtons />
21
+ )
22
+ }
23
+ < LocalizationProviderContext dateAdapter = { AdapterMoment } >
24
+ { children }
25
+ </ LocalizationProviderContext >
26
+ {
27
+ ! isFormLoading && ( ! actionButtonPos && ! hasPageLayoutSteps ) && (
28
+ < RenderFormButtons />
29
+ )
30
+ }
31
+ </ >
26
32
)
27
- }
28
- </ > )
29
33
30
34
export default FormContextWrapper ;
You can’t perform that action at this time.
0 commit comments