From 06fddb26f3e831b041c3ee238a331041187e41f8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 26 Sep 2021 12:21:23 -0500 Subject: [PATCH] SidebarMenu: add links to local and Fediverse timelines --- app/soapbox/components/sidebar_menu.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/app/soapbox/components/sidebar_menu.js b/app/soapbox/components/sidebar_menu.js index d320815a1..2af73926e 100644 --- a/app/soapbox/components/sidebar_menu.js +++ b/app/soapbox/components/sidebar_menu.js @@ -5,7 +5,7 @@ import { throttle } from 'lodash'; import { Link, NavLink } from 'react-router-dom'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; -import { injectIntl, defineMessages } from 'react-intl'; +import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Avatar from './avatar'; import IconButton from './icon_button'; @@ -66,6 +66,7 @@ const makeMapStateToProps = () => { hasCrypto: typeof soapbox.getIn(['cryptoAddresses', 0, 'ticker']) === 'string', otherAccounts: getOtherAccounts(state), features, + siteTitle: instance.get('title'), }; }; @@ -155,7 +156,7 @@ class SidebarMenu extends ImmutablePureComponent { } render() { - const { sidebarOpen, intl, account, onClickLogOut, donateUrl, otherAccounts, hasCrypto, features } = this.props; + const { sidebarOpen, intl, account, onClickLogOut, donateUrl, otherAccounts, hasCrypto, features, siteTitle } = this.props; const { switcher } = this.state; if (!account) return null; const acct = account.get('acct'); @@ -198,7 +199,26 @@ class SidebarMenu extends ImmutablePureComponent { -
+
+ {features.federating ? ( + + + {siteTitle} + + ) : ( + + + + + )} + + {features.federating && + + + } +
+ +
{intl.formatMessage(messages.profile)}