1
0

fix: maybe

This commit is contained in:
オスカー、 2024-04-08 01:23:48 +09:00
parent d405a1a4c1
commit b62c45f484

View File

@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import { defineMessages } from 'react-intl';
import { defineMessages, injectIntl } from 'react-intl';
import { Helmet } from 'react-helmet';
@ -16,7 +16,7 @@ import StatusList from '../../components/status_list';
import Column from '../ui/components/column';
const messages = defineMessages({
heading: { id: 'column.pins', defaultMessage: 'Pinned post' },
heading: { id: 'status.direct_indicator', defaultMessage: 'Direct Messages' },
});
const mapStateToProps = state => ({
@ -50,8 +50,8 @@ class DirectMessages extends ImmutablePureComponent {
const { intl, statusIds, hasMore, multiColumn } = this.props;
return (
<Column bindToDocument={!multiColumn} icon='thumb-tack' heading={intl.formatMessage(messages.heading)} ref={this.setRef}>
<ColumnBackButton />
<Column icon='thumb-tack' heading={intl.formatMessage(messages.heading)} ref={this.setRef}>
<ColumnBackButton multiColumn={multiColumn} />
<StatusList
statusIds={statusIds}
scrollKey='direct_messages'
@ -67,4 +67,4 @@ class DirectMessages extends ImmutablePureComponent {
}
export default connect(mapStateToProps)(DirectMessages);
export default connect(mapStateToProps)(injectIntl(DirectMessages));