From a8dfe1262befca45427a33838b20391f4c0aeac9 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 14 Oct 2021 13:26:07 -0500 Subject: [PATCH] SubNavigation: render tab title depending on message --- app/soapbox/components/sub_navigation.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/soapbox/components/sub_navigation.js b/app/soapbox/components/sub_navigation.js index 627dffff4..a48d211c6 100644 --- a/app/soapbox/components/sub_navigation.js +++ b/app/soapbox/components/sub_navigation.js @@ -4,6 +4,7 @@ import { FormattedMessage } from 'react-intl'; import { throttle } from 'lodash'; import Icon from 'soapbox/components/icon'; import classNames from 'classnames'; +import Helmet from 'soapbox/components/helmet'; export default class SubNavigation extends React.PureComponent { @@ -80,9 +81,12 @@ export default class SubNavigation extends React.PureComponent { -
- {message} -
+ {message && ( +
+ {message} + {message} +
+ )} );