fleet/frontend/router/index.jsx
Mike Stone ac9a38c207 Login page scaffolding (#142)
* 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
2016-09-12 11:14:07 -04:00

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;