mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
ac9a38c207
* LoginPage component and route * animated SVG background image utility * Kolide text, User, Lock, & Kolide logo SVG icons * styleguide * Adds global footer * Adds InputFieldWithIcon component * Adds LoginForm component * Render LoginForm from the LoginPage
25 lines
756 B
JavaScript
25 lines
756 B
JavaScript
import React from 'react';
|
|
import { browserHistory, IndexRoute, Route, Router } from 'react-router';
|
|
import { Provider } from 'react-redux';
|
|
import radium from 'radium';
|
|
import { syncHistoryWithStore } from 'react-router-redux';
|
|
import App from '../components/App';
|
|
import HomePage from '../pages/HomePage';
|
|
import LoginPage from '../pages/LoginPage';
|
|
import store from '../redux/store';
|
|
|
|
const history = syncHistoryWithStore(browserHistory, store);
|
|
|
|
const routes = (
|
|
<Provider store={store}>
|
|
<Router history={history}>
|
|
<Route path="/" component={radium(App)}>
|
|
<IndexRoute component={radium(HomePage)} />
|
|
<Route path="login" component={radium(LoginPage)} />
|
|
</Route>
|
|
</Router>
|
|
</Provider>
|
|
);
|
|
|
|
export default routes;
|