Chats: allow clicking recipient in chatroom
This commit is contained in:
parent
ec491add23
commit
40937b9fdc
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ import { connect } from 'react-redux';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
import { Link } from 'react-router-dom';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import Avatar from 'soapbox/components/avatar';
|
import Avatar from 'soapbox/components/avatar';
|
||||||
import { acctFull } from 'soapbox/utils/accounts';
|
import { acctFull } from 'soapbox/utils/accounts';
|
||||||
|
@ -75,12 +76,12 @@ class ChatRoom extends ImmutablePureComponent {
|
||||||
<Column>
|
<Column>
|
||||||
<div className='chatroom__back'>
|
<div className='chatroom__back'>
|
||||||
<ColumnBackButton />
|
<ColumnBackButton />
|
||||||
<div className='chatroom__header'>
|
<Link to={`/@${account.get('acct')}`} className='chatroom__header'>
|
||||||
<Avatar account={account} size={18} />
|
<Avatar account={account} size={18} />
|
||||||
<div className='chatroom__title'>
|
<div className='chatroom__title'>
|
||||||
@{acctFull(account)}
|
@{acctFull(account)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<ChatBox
|
<ChatBox
|
||||||
chatId={chat.get('id')}
|
chatId={chat.get('id')}
|
||||||
|
|
Loading…
Reference in a new issue