Skip to content

Commit 873322c

Browse files
lcameroonLuis Cameroon
authored andcommitted
[Web] Rename account to profile
1 parent af6c474 commit 873322c

File tree

26 files changed

+1565
-1696
lines changed

26 files changed

+1565
-1696
lines changed

App.tsx

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
import React from 'react';
2-
import { Provider } from 'react-redux';
32
import { bindActionCreators } from 'redux';
3+
import { Provider } from 'react-redux';
4+
import { StackNavigator } from 'react-navigation';
45

5-
import App from './src/App';
6-
import initStore from './src/App/store';
7-
import NativeRoutes from './src/App/routes/index.native';
8-
import setupAxiosInterceptors from './src/App/shared/interceptors/axios.interceptor';
96
import { clearAuthentication } from './src/App/shared/actions/auth.action';
10-
import { setContainer } from './src/App/routes/utils.native';
7+
import setupAxiosInterceptors from './src/App/shared/interceptors/axios.interceptor';
8+
import initStore from './src/App/store';
9+
// Screens
10+
import App from './src/App';
11+
import Dashboard from './src/App/features/Home/components/Dashboard';
12+
13+
const RootStack = StackNavigator(
14+
{
15+
App,
16+
Dashboard
17+
},
18+
{
19+
initialRouteName: 'App'
20+
}
21+
);
1122

1223
const store = initStore();
1324
const actions = bindActionCreators({ clearAuthentication }, store.dispatch);
1425
setupAxiosInterceptors(() => actions.clearAuthentication('error.http.403'));
1526

16-
export default class NativeApp extends App {
27+
export default class NativeApp extends React.Component {
1728
render() {
1829
return (
1930
<Provider store={store}>
20-
<NativeRoutes
21-
ref={(navigatorRef: any) => {
22-
setContainer(navigatorRef);
23-
}}
24-
/>
31+
<RootStack />
2532
</Provider>
2633
);
2734
}
2835
}
36+
// Disable the Yellow Box
37+
console.ignoredYellowBox = ['Warning:'];

0 commit comments

Comments
 (0)