Hiding parallax from most views in light theme
This commit is contained in:
@ -514,7 +514,7 @@ class Discover extends React.Component{
|
||||
<div className="view discover-view preserve-3d">
|
||||
<div className="intro preserve-3d">
|
||||
|
||||
<Parallax image="/iris/assets/backgrounds/discover.jpg" />
|
||||
{this.props.theme == 'dark' && <Parallax image="/iris/assets/backgrounds/discover.jpg" />}
|
||||
|
||||
<div className="intro__liner">
|
||||
<h1>Explore new music</h1>
|
||||
@ -547,13 +547,6 @@ class Discover extends React.Component{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Export our component
|
||||
*
|
||||
* We also integrate our global store, using connect()
|
||||
**/
|
||||
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
return {
|
||||
theme: state.ui.theme,
|
||||
|
||||
Reference in New Issue
Block a user