Chats: rename ChatListAccount to just Chat

loading-indicator-on-tls^2
Alex Gleason 2020-08-28 13:28:11 -05:00
rodzic b1ccec1cf5
commit 46323e088a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -6,7 +6,7 @@ import DisplayName from '../../../components/display_name';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { shortNumberFormat } from 'soapbox/utils/numbers';
export default class ChatListAccount extends ImmutablePureComponent {
export default class Chat extends ImmutablePureComponent {
static propTypes = {
chat: ImmutablePropTypes.map.isRequired,

Wyświetl plik

@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { fetchChats } from 'soapbox/actions/chats';
import ChatListAccount from './chat_list_account';
import Chat from './chat';
import { makeGetChat } from 'soapbox/selectors';
const chatDateComparator = (chatA, chatB) => {
@ -57,7 +57,7 @@ class ChatList extends ImmutablePureComponent {
}
{chats.map(chat => (
<div key={chat.get('id')} className='chat-list-item'>
<ChatListAccount
<Chat
chat={chat}
onClick={this.props.onClickChat}
/>