embedd video correctly

hide video when user clicks to home page again
This commit is contained in:
2020-06-01 17:58:48 +02:00
parent 27cfe7df59
commit e0f5d62edf
6 changed files with 72 additions and 22 deletions

View File

@@ -53,12 +53,7 @@ class Preview extends React.Component {
itemClick() {
console.log("item clicked!"+this.state.name);
ReactDOM.render(
<React.StrictMode>
<Player movie_id={this.props.movie_id}/>
</React.StrictMode>,
document.getElementById('root')
);
this.props.showvideo(<Player movie_id={this.props.movie_id}/>);
}
}