Weird parallax bug

This commit is contained in:
James Barnsley
2020-03-12 17:01:56 +13:00
parent 648ec8638a
commit 29b7b65b9c
4 changed files with 28 additions and 36 deletions

View File

@ -35,20 +35,11 @@ class DiscoverFeatured extends React.Component {
this.props.uiActions.showContextMenu(data);
}
renderIntro(playlist = null) {
if (playlist) {
return (
<div className="intro preserve-3d">
<Parallax image={playlist.images ? playlist.images.large : null} blur />
</div>
);
}
return (
<div className="intro">
<Parallax disabled={this.props.disable_parallax} />
</div>
);
}
renderIntro = ({ images: { large } = {} } = {}) => (
<div className="intro preserve-3d">
<Parallax image={large} blur />
</div>
);
render() {
if (isLoading(this.props.load_queue, ['spotify_browse/featured-playlists'])) {