1
- import React from 'react'
2
- import { Provider } from 'react-redux'
3
- import { SafeAreaProvider } from 'react-native-safe-area-context'
4
- import { Snackbar } from 'react-native-paper'
5
- import store from './store'
6
- import * as UiContext from './contexts/ui'
7
- import * as NetworkContext from './contexts/network'
8
- import * as UserContext from './contexts/user'
9
- import Routes from './routes'
10
- import NetworkPanel from './components/molecules/NetworkPanel'
11
- import ErrorPanel from './components/molecules/ErrorPanel'
1
+ import React from 'react' ;
2
+ import { Provider } from 'react-redux' ;
3
+ import { SafeAreaProvider } from 'react-native-safe-area-context' ;
4
+ import { Snackbar } from 'react-native-paper' ;
5
+ import store from './store' ;
6
+ import * as UiContext from './contexts/ui' ;
7
+ import * as NetworkContext from './contexts/network' ;
8
+ import * as UserContext from './contexts/user' ;
9
+ import Routes from './routes' ;
10
+ import NetworkPanel from './components/molecules/NetworkPanel' ;
11
+ import ErrorPanel from './components/molecules/ErrorPanel' ;
12
12
13
13
export default function App ( ) {
14
- const [ error , setError ] = React . useState ( UiContext . createErrorInitialState ( ) )
15
- const [ snackbar , setSnackbar ] = React . useState ( UiContext . createSnackbarInitialState ( ) )
16
- const [ applicationState , setApplicationState ] = React . useState ( UiContext . createApplicationInitialState ( ) )
14
+ const [ error , setError ] = React . useState ( UiContext . createErrorInitialState ( ) ) ;
15
+ const [ snackbar , setSnackbar ] = React . useState ( UiContext . createSnackbarInitialState ( ) ) ;
16
+ const [ applicationState , setApplicationState ] = React . useState ( UiContext . createApplicationInitialState ( ) ) ;
17
17
const onDismiss = React . useCallback ( ( ) => {
18
- setSnackbar ( UiContext . createSnackbarInitialState ( ) )
19
- } , [ ] )
18
+ setSnackbar ( UiContext . createSnackbarInitialState ( ) ) ;
19
+ } , [ ] ) ;
20
20
21
21
const [ networkState , dispatchNetworkActions ] = React . useReducer (
22
22
NetworkContext . reducer ,
23
23
NetworkContext . createInitialState ( ) ,
24
- )
24
+ ) ;
25
25
26
- const [ userState , setUserState ] = React . useState ( UserContext . createInitialState ( ) )
26
+ const [ userState , setUserState ] = React . useState ( UserContext . createInitialState ( ) ) ;
27
27
28
28
return (
29
29
< Provider store = { store } >
@@ -48,5 +48,5 @@ export default function App() {
48
48
</ UiContext . Context . Provider >
49
49
</ SafeAreaProvider >
50
50
</ Provider >
51
- )
51
+ ) ;
52
52
}
0 commit comments