Chats: fix unnecessary re-rendering

This commit is contained in:
Alex Gleason 2021-07-01 15:42:10 -05:00
parent 64b0fa6d99
commit 069f32c602
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -2,7 +2,6 @@ import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { getSettings } from 'soapbox/actions/settings';
import ChatList from './chat_list';
@ -36,12 +35,10 @@ const mapStateToProps = state => {
};
export default @connect(mapStateToProps)
@injectIntl
class ChatPanes extends ImmutablePureComponent {
static propTypes = {
dispatch: PropTypes.func.isRequired,
intl: PropTypes.object.isRequired,
panesData: ImmutablePropTypes.map,
}