From a829f429f751daacfc934d14ea5c6b771e8538d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 25 Dec 2021 01:17:14 +0100 Subject: [PATCH] use instance title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/directory/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/features/directory/index.js b/app/soapbox/features/directory/index.js index 408c85371..a28c62c9e 100644 --- a/app/soapbox/features/directory/index.js +++ b/app/soapbox/features/directory/index.js @@ -25,7 +25,7 @@ const messages = defineMessages({ const mapStateToProps = state => ({ accountIds: state.getIn(['user_lists', 'directory', 'items'], ImmutableList()), isLoading: state.getIn(['user_lists', 'directory', 'isLoading'], true), - domain: state.getIn(['meta', 'domain']), + title: state.getIn(['instance', 'title']), features: getFeatures(state.get('instance')), }); @@ -45,7 +45,7 @@ class Directory extends React.PureComponent { columnId: PropTypes.string, intl: PropTypes.object.isRequired, multiColumn: PropTypes.bool, - domain: PropTypes.string.isRequired, + title: PropTypes.string.isRequired, params: PropTypes.shape({ order: PropTypes.string, local: PropTypes.bool, @@ -100,7 +100,7 @@ class Directory extends React.PureComponent { } render() { - const { isLoading, accountIds, intl, columnId, multiColumn, domain, shouldUpdateScroll, features } = this.props; + const { isLoading, accountIds, intl, columnId, multiColumn, title, shouldUpdateScroll, features } = this.props; const { order, local } = this.getParams(this.props, this.state); const pinned = !!columnId; @@ -114,7 +114,7 @@ class Directory extends React.PureComponent { {features.federating && (
- +
)}