Updated a lot of components to PureComponents. Better performance.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user