import * as React from 'react'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import { Provider } from 'react-redux'
import store from './store'

import Dashboard from './pages/Dashboard'
import Login from './pages/Login'

// Style
import './App.css';

class App extends React.Component {

  render() {
    return (
      <Provider store={store}>
        <Router>
          <div className="App">
            <div id="route-container">
              <Route path="/" exact component={Dashboard} />
              <Route path="/login" exact component={Login} />
            </div>
          </div>
        </Router>
      </Provider>
    );
  }
}

export default App;
