-
Notifications
You must be signed in to change notification settings - Fork 6
/
App.js
38 lines (35 loc) · 952 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import Amplify from 'aws-amplify'
import awsconfig from './aws-exports'
import React from 'react'
import './App.css'
import {
BrowserRouter as Router,
Route,
Switch
} from 'react-router-dom'
import { GlobalStyles } from '@bigcommerce/big-design'
import Install from './components/Install'
import Load from './components/Load'
import Dashboard from './components/dashboard'
import config from './config'
const lang = config.lang
Amplify.configure(awsconfig)
function App() {
return <Router>
<GlobalStyles />
<Switch>
<Route path="/oauth" render={(props) =>
<Install lang={lang.Install} {...props} />
} />
<Route path="/load" render={(props) =>
<Load lang={lang.Load} {...props} />
} />
<Route path="/dashboard" render={(props) =>
<Dashboard lang={lang.Dashboard}
modules={config.modules}
{...props} />
} />
</Switch>
</Router>
}
export default App