mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 22:12:13 +00:00
shouldComponentUpdate implemented for MetaItem
This commit is contained in:
parent
8a81962ecd
commit
35ebb27548
1 changed files with 15 additions and 0 deletions
|
|
@ -14,6 +14,21 @@ class MetaItem extends Component {
|
|||
};
|
||||
}
|
||||
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
return nextState.menuPopupOpen !== this.state.menuPopupOpen ||
|
||||
nextProps.className !== this.props.className ||
|
||||
nextProps.popupClassName !== this.props.popupClassName ||
|
||||
nextProps.type !== this.props.type ||
|
||||
nextProps.relativeSize !== this.props.relativeSize ||
|
||||
nextProps.posterShape !== this.props.posterShape ||
|
||||
nextProps.poster !== this.props.poster ||
|
||||
nextProps.title !== this.props.title ||
|
||||
nextProps.subtitle !== this.props.subtitle ||
|
||||
nextProps.progress !== this.props.progress ||
|
||||
nextProps.released !== this.props.released ||
|
||||
nextProps.menu !== this.props.menu;
|
||||
}
|
||||
|
||||
onMenuPopupOpen = () => {
|
||||
this.setState({ menuPopupOpen: true });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue