1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

Don't rerender all cells each scroll

This commit is contained in:
ta264
2020-01-05 21:45:01 +00:00
committed by Mark McDowall
parent 108f6fe393
commit 466d4fba9e
10 changed files with 197 additions and 186 deletions
@@ -12,7 +12,6 @@ import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
import ProgressBar from 'Components/ProgressBar';
import TagListConnector from 'Components/TagListConnector';
import CheckInput from 'Components/Form/CheckInput';
import VirtualTableRow from 'Components/Table/VirtualTableRow';
import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell';
import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector';
import SeriesTitleLink from 'Series/SeriesTitleLink';
@@ -79,7 +78,6 @@ class SeriesIndexRow extends Component {
render() {
const {
style,
id,
monitored,
status,
@@ -126,7 +124,7 @@ class SeriesIndexRow extends Component {
} = this.state;
return (
<VirtualTableRow style={style}>
<>
{
columns.map((column) => {
const {
@@ -494,13 +492,12 @@ class SeriesIndexRow extends Component {
seriesId={id}
onModalClose={this.onDeleteSeriesModalClose}
/>
</VirtualTableRow>
</>
);
}
}
SeriesIndexRow.propTypes = {
style: PropTypes.object.isRequired,
id: PropTypes.number.isRequired,
monitored: PropTypes.bool.isRequired,
status: PropTypes.string.isRequired,