Parallax disabling for low-powered devices
This commit is contained in:
@ -503,7 +503,7 @@ class Discover extends React.Component{
|
||||
<div className="view discover-view">
|
||||
<div className="intro">
|
||||
|
||||
<Parallax image="assets/backgrounds/discover.jpg" theme={this.props.theme} />
|
||||
<Parallax image="assets/backgrounds/discover.jpg" theme={this.props.theme} disabled={this.props.disable_parallax} />
|
||||
|
||||
<div className="liner">
|
||||
<h1>Explore new music</h1>
|
||||
@ -547,6 +547,7 @@ class Discover extends React.Component{
|
||||
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
return {
|
||||
disable_parallax: state.ui.disable_parallax,
|
||||
theme: state.ui.theme,
|
||||
albums: state.core.albums,
|
||||
artists: state.core.artists,
|
||||
|
||||
Reference in New Issue
Block a user