Upgrading everything, especially router
This commit is contained in:
@ -2,11 +2,12 @@
|
||||
* Base-level application wrapper
|
||||
**/
|
||||
|
||||
import React, { PropTypes } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Provider } from 'react-redux'
|
||||
import { createStore } from 'redux'
|
||||
import { Router, Route, Link, IndexRoute, hashHistory } from 'react-router'
|
||||
import React, { PropTypes } from 'react';;
|
||||
import ReactDOM from 'react-dom';;
|
||||
import { Provider } from 'react-redux';
|
||||
import { createStore } from 'redux';
|
||||
//import { Router, Route, Link, IndexRoute, hashHistory } from 'react-router';
|
||||
import { BrowserRouter, Route, IndexRoute } from "react-router-dom";
|
||||
|
||||
import store from './bootstrap.js';
|
||||
require('../scss/app.scss');
|
||||
@ -50,7 +51,7 @@ global.baseURL = '/';
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
<Router history={hashHistory}>
|
||||
<BrowserRouter>
|
||||
<Route path={global.baseURL} component={App}>
|
||||
|
||||
<IndexRoute component={Queue} />
|
||||
@ -91,7 +92,7 @@ ReactDOM.render(
|
||||
<Route path="library/browse(/:uri)" component={LibraryBrowse} />
|
||||
|
||||
</Route>
|
||||
</Router>
|
||||
</BrowserRouter>
|
||||
</Provider>,
|
||||
document.getElementById('app')
|
||||
);
|
||||
Reference in New Issue
Block a user