File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,16 @@ import {Provider} from 'react-redux';
5
5
import Store from './store' ;
6
6
import AppContainer from './AppContainer.react' ;
7
7
8
- const AppProvider = ( { hooks} : any ) => {
8
+ const AppProvider = ( {
9
+ hooks = {
10
+ layout_pre : null ,
11
+ layout_post : null ,
12
+ request_pre : null ,
13
+ request_post : null ,
14
+ callback_resolved : null ,
15
+ request_refresh_jwt : null
16
+ }
17
+ } : any ) => {
9
18
const [ { store} ] = useState ( ( ) => new Store ( ) ) ;
10
19
return (
11
20
< Provider store = { store } >
@@ -25,15 +34,4 @@ AppProvider.propTypes = {
25
34
} )
26
35
} ;
27
36
28
- AppProvider . defaultProps = {
29
- hooks : {
30
- layout_pre : null ,
31
- layout_post : null ,
32
- request_pre : null ,
33
- request_post : null ,
34
- callback_resolved : null ,
35
- request_refresh_jwt : null
36
- }
37
- } ;
38
-
39
37
export default AppProvider ;
You can’t perform that action at this time.
0 commit comments