mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-08 05:51:47 -07:00
Fixed: More UI tweaks
This commit is contained in:
parent
3336ebd075
commit
c8ef68283b
4 changed files with 5 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
import _ from 'lodash';
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import dimensions from 'Styles/Variables/dimensions';
|
||||
import Measure from 'Components/Measure';
|
||||
import PageJumpBarItem from './PageJumpBarItem';
|
||||
|
@ -8,7 +8,7 @@ import styles from './PageJumpBar.css';
|
|||
|
||||
const ITEM_HEIGHT = parseInt(dimensions.jumpBarItemHeight);
|
||||
|
||||
class PageJumpBar extends Component {
|
||||
class PageJumpBar extends PureComponent {
|
||||
|
||||
//
|
||||
// Lifecycle
|
||||
|
@ -26,13 +26,6 @@ class PageJumpBar extends Component {
|
|||
this.computeVisibleItems();
|
||||
}
|
||||
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
return (
|
||||
nextProps.items !== this.props.items ||
|
||||
nextState.height !== this.state.height
|
||||
);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
if (
|
||||
prevProps.items !== this.props.items ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue