about summary refs log tree commit diff
path: root/src/view/shell/bottom-bar/BottomBarWeb.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-21 01:29:22 +0100
committerGitHub <noreply@github.com>2024-05-20 19:29:22 -0500
commit4a7436886d0548ae453997286f5a8c2ac4b297a0 (patch)
tree1adc5e46a824016df65d261df99ad5661c74f42d /src/view/shell/bottom-bar/BottomBarWeb.tsx
parenta7b0242cc8aaf09273abe20903e88e59a4acd1a7 (diff)
downloadvoidsky-4a7436886d0548ae453997286f5a8c2ac4b297a0.tar.zst
remove DMs gate (#4112)
Diffstat (limited to 'src/view/shell/bottom-bar/BottomBarWeb.tsx')
-rw-r--r--src/view/shell/bottom-bar/BottomBarWeb.tsx42
1 files changed, 11 insertions, 31 deletions
diff --git a/src/view/shell/bottom-bar/BottomBarWeb.tsx b/src/view/shell/bottom-bar/BottomBarWeb.tsx
index f2d2f26f9..6860e8024 100644
--- a/src/view/shell/bottom-bar/BottomBarWeb.tsx
+++ b/src/view/shell/bottom-bar/BottomBarWeb.tsx
@@ -12,7 +12,6 @@ import {clamp} from '#/lib/numbers'
 import {getCurrentRoute, isTab} from '#/lib/routes/helpers'
 import {makeProfileLink} from '#/lib/routes/links'
 import {CommonNavigatorParams} from '#/lib/routes/types'
-import {useGate} from '#/lib/statsig/statsig'
 import {s} from '#/lib/styles'
 import {useSession} from '#/state/session'
 import {useLoggedOutViewControls} from '#/state/shell/logged-out'
@@ -27,10 +26,6 @@ import {
   Bell_Stroke2_Corner0_Rounded as Bell,
 } from '#/components/icons/Bell'
 import {
-  Hashtag_Filled_Corner0_Rounded as HashtagFilled,
-  Hashtag_Stroke2_Corner0_Rounded as Hashtag,
-} from '#/components/icons/Hashtag'
-import {
   HomeOpen_Filled_Corner0_Rounded as HomeFilled,
   HomeOpen_Stoke2_Corner0_Rounded as Home,
 } from '#/components/icons/HomeOpen'
@@ -54,7 +49,6 @@ export function BottomBarWeb() {
   const {footerMinimalShellTransform} = useMinimalShellMode()
   const {requestSwitchToAccount} = useLoggedOutViewControls()
   const closeAllActiveElements = useCloseAllActiveElements()
-  const gate = useGate()
   const iconWidth = 26
 
   const showSignIn = React.useCallback(() => {
@@ -105,31 +99,17 @@ export function BottomBarWeb() {
 
           {hasSession && (
             <>
-              {gate('dms') ? (
-                <NavItem routeName="Messages" href="/messages">
-                  {({isActive}) => {
-                    const Icon = isActive ? MessageFilled : Message
-                    return (
-                      <Icon
-                        width={iconWidth - 1}
-                        style={[styles.ctrlIcon, pal.text, styles.messagesIcon]}
-                      />
-                    )
-                  }}
-                </NavItem>
-              ) : (
-                <NavItem routeName="Feeds" href="/feeds">
-                  {({isActive}) => {
-                    const Icon = isActive ? HashtagFilled : Hashtag
-                    return (
-                      <Icon
-                        width={iconWidth + 1}
-                        style={[styles.ctrlIcon, pal.text, styles.feedsIcon]}
-                      />
-                    )
-                  }}
-                </NavItem>
-              )}
+              <NavItem routeName="Messages" href="/messages">
+                {({isActive}) => {
+                  const Icon = isActive ? MessageFilled : Message
+                  return (
+                    <Icon
+                      width={iconWidth - 1}
+                      style={[styles.ctrlIcon, pal.text, styles.messagesIcon]}
+                    />
+                  )
+                }}
+              </NavItem>
               <NavItem routeName="Notifications" href="/notifications">
                 {({isActive}) => {
                   const Icon = isActive ? BellFilled : Bell