Upgrading everything, especially router

This commit is contained in:
James Barnsley
2019-01-09 16:56:35 +13:00
parent 24d5d7b94e
commit 56587aa6fb
31 changed files with 18516 additions and 17159 deletions

View File

@ -2,7 +2,7 @@
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { createStore, bindActionCreators } from 'redux'
import { hashHistory } from 'react-router'
import * as helpers from '../helpers'
import * as uiActions from '../services/ui/actions'
@ -44,7 +44,7 @@ class AlbumGrid extends React.Component{
type="album"
item={album}
show_source_icon={this.props.show_source_icon}
onClick={e => {hashHistory.push(global.baseURL+'album/'+encodeURIComponent(album.uri))}}
onClick={e => {this.props.history.push(global.baseURL+'album/'+encodeURIComponent(album.uri))}}
onContextMenu={e => this.handleContextMenu(e,album)}
/>
)}