Fix docs list on sync and locale
This commit is contained in:
parent
2863f4d6c0
commit
a3b9f3e682
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import * as Sentry from "@sentry/react-native";
|
|||
// Redux
|
||||
import { Provider } from 'react-redux';
|
||||
import { store } from './App/Store/ConfigureStore';
|
||||
import { initDocuments } from './App/Store/Actions/documents';
|
||||
// Deps
|
||||
import 'react-native-gesture-handler';
|
||||
import { NavigationContainer } from '@react-navigation/native';
|
||||
|
|
@ -88,6 +89,7 @@ class App extends React.Component {
|
|||
onPress={() => {
|
||||
this.state.drawerRef.current.closeDrawer();
|
||||
store.dispatch({ type: 'EDIT_LOCALE' });
|
||||
store.dispatch(initDocuments(store.getState().locale.locale, store.getState().directories.global))
|
||||
}}
|
||||
style={styles.drawer.btn}>
|
||||
<Image source={this.renderFlag()} style={{ width: 25, height: 25 }} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue