Fixed: More UI tweaks

This commit is contained in:
Qstick 2019-02-27 23:33:26 -05:00
parent 3336ebd075
commit c8ef68283b
4 changed files with 5 additions and 9 deletions

View file

@ -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 ||