mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Fixed: More UI tweaks
This commit is contained in:
parent
3336ebd075
commit
c8ef68283b
4 changed files with 5 additions and 9 deletions
|
@ -164,6 +164,7 @@ class QueueConnector extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
QueueConnector.propTypes = {
|
QueueConnector.propTypes = {
|
||||||
|
useCurrentPage: PropTypes.bool.isRequired,
|
||||||
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||||
fetchQueue: PropTypes.func.isRequired,
|
fetchQueue: PropTypes.func.isRequired,
|
||||||
gotoQueueFirstPage: PropTypes.func.isRequired,
|
gotoQueueFirstPage: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -155,6 +155,7 @@ class CalendarConnector extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
CalendarConnector.propTypes = {
|
CalendarConnector.propTypes = {
|
||||||
|
useCurrentPage: PropTypes.bool.isRequired,
|
||||||
time: PropTypes.string,
|
time: PropTypes.string,
|
||||||
view: PropTypes.string.isRequired,
|
view: PropTypes.string.isRequired,
|
||||||
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, { Component } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
import dimensions from 'Styles/Variables/dimensions';
|
import dimensions from 'Styles/Variables/dimensions';
|
||||||
import Measure from 'Components/Measure';
|
import Measure from 'Components/Measure';
|
||||||
import PageJumpBarItem from './PageJumpBarItem';
|
import PageJumpBarItem from './PageJumpBarItem';
|
||||||
|
@ -8,7 +8,7 @@ import styles from './PageJumpBar.css';
|
||||||
|
|
||||||
const ITEM_HEIGHT = parseInt(dimensions.jumpBarItemHeight);
|
const ITEM_HEIGHT = parseInt(dimensions.jumpBarItemHeight);
|
||||||
|
|
||||||
class PageJumpBar extends Component {
|
class PageJumpBar extends PureComponent {
|
||||||
|
|
||||||
//
|
//
|
||||||
// Lifecycle
|
// Lifecycle
|
||||||
|
@ -26,13 +26,6 @@ class PageJumpBar extends Component {
|
||||||
this.computeVisibleItems();
|
this.computeVisibleItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldComponentUpdate(nextProps, nextState) {
|
|
||||||
return (
|
|
||||||
nextProps.items !== this.props.items ||
|
|
||||||
nextState.height !== this.state.height
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps, prevState) {
|
||||||
if (
|
if (
|
||||||
prevProps.items !== this.props.items ||
|
prevProps.items !== this.props.items ||
|
||||||
|
|
|
@ -162,6 +162,7 @@ class CutoffUnmetConnector extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
CutoffUnmetConnector.propTypes = {
|
CutoffUnmetConnector.propTypes = {
|
||||||
|
useCurrentPage: PropTypes.bool.isRequired,
|
||||||
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||||
fetchCutoffUnmet: PropTypes.func.isRequired,
|
fetchCutoffUnmet: PropTypes.func.isRequired,
|
||||||
gotoCutoffUnmetFirstPage: PropTypes.func.isRequired,
|
gotoCutoffUnmetFirstPage: PropTypes.func.isRequired,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue