about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/getting_started/index.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-10-08 18:50:46 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-10-08 20:49:02 +0200
commitd4f13b90419b604c84d9a89635c5ea09be81d6cc (patch)
treefa7189293ac31b466067ffe6c917320d9a616fd6 /app/javascript/flavours/glitch/features/getting_started/index.js
parentda67e0660a21802e55ee2c6b20870866c5fc8a6f (diff)
Change “Explore” tab to only provide search when trends are disabled
Diffstat (limited to 'app/javascript/flavours/glitch/features/getting_started/index.js')
-rw-r--r--app/javascript/flavours/glitch/features/getting_started/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/getting_started/index.js b/app/javascript/flavours/glitch/features/getting_started/index.js
index aa1d26cf5..8b6a617ff 100644
--- a/app/javascript/flavours/glitch/features/getting_started/index.js
+++ b/app/javascript/flavours/glitch/features/getting_started/index.js
@@ -138,7 +138,9 @@ const NAVIGATION_PANEL_BREAKPOINT = 600 + (285 * 2) + (10 * 2);
       }
     }
 
-    navItems.push(<ColumnLink key='explore' icon='hashtag' text={intl.formatMessage(messages.explore)} to='/explore' />);
+    if (showTrends) {
+      navItems.push(<ColumnLink key='explore' icon='hashtag' text={intl.formatMessage(messages.explore)} to='/explore' />);
+    }
 
     if (!multiColumn || !columns.find(item => item.get('id') === 'DIRECT')) {
       navItems.push(<ColumnLink key='conversations' icon='envelope' text={intl.formatMessage(messages.direct)} to='/conversations' />);