Updated a lot of components to PureComponents. Better performance.

This commit is contained in:
Håvar Aambø Fosstveit
2019-03-29 23:56:57 +01:00
parent 6a9ac30a8b
commit 2f19746fa9
21 changed files with 35 additions and 29 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import React, { Component } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
@@ -37,7 +37,7 @@ const styles = (theme) =>
}
});
class Sidebar extends Component
class Sidebar extends React.PureComponent
{
render()
{