From 702f1c62fcf0e246c30283d301336ca347cea013 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 15 May 2024 13:51:11 +0200 Subject: [PATCH] Hide browser behind feature flag #20022 --- src/legacy/status_im/ui/components/list_selection.cljs | 6 ++++-- .../contexts/shell/jump_to/components/bottom_tabs/view.cljs | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/legacy/status_im/ui/components/list_selection.cljs b/src/legacy/status_im/ui/components/list_selection.cljs index 6732e721bb67..c0800368730f 100644 --- a/src/legacy/status_im/ui/components/list_selection.cljs +++ b/src/legacy/status_im/ui/components/list_selection.cljs @@ -5,6 +5,7 @@ [legacy.status-im.ui.components.react :as react] [re-frame.core :as re-frame] [react-native.platform :as platform] + [status-im.config :as config] [utils.i18n :as i18n] [utils.url :as url])) @@ -27,8 +28,9 @@ (defn browse [link] (show {:title (i18n/label :t/browsing-title) - :options [{:label (i18n/label :t/browsing-open-in-status) - :action #(re-frame/dispatch [:browser.ui/open-url link])} + :options [(when config/show-not-implemented-features? + {:label (i18n/label :t/browsing-open-in-status) + :action #(re-frame/dispatch [:browser.ui/open-url link])}) {:label (i18n/label (platform-web-browser)) :action #(.openURL ^js react/linking (url/normalize-url link))}] :cancel-text (i18n/label :t/browsing-cancel)})) diff --git a/src/status_im/contexts/shell/jump_to/components/bottom_tabs/view.cljs b/src/status_im/contexts/shell/jump_to/components/bottom_tabs/view.cljs index 687441ba876c..64e21104683d 100644 --- a/src/status_im/contexts/shell/jump_to/components/bottom_tabs/view.cljs +++ b/src/status_im/contexts/shell/jump_to/components/bottom_tabs/view.cljs @@ -6,6 +6,7 @@ [react-native.gesture :as gesture] [react-native.platform :as platform] [react-native.reanimated :as reanimated] + [status-im.config :as config] [status-im.contexts.shell.jump-to.animation :as animation] [status-im.contexts.shell.jump-to.components.bottom-tabs.style :as style] [status-im.contexts.shell.jump-to.constants :as shell.constants] @@ -70,4 +71,5 @@ [gesture/gesture-detector {:gesture messages-double-tap-gesture} [bottom-tab :i/messages :chats-stack shared-values notifications-data]] [bottom-tab :i/wallet :wallet-stack shared-values notifications-data] - [bottom-tab :i/browser :browser-stack shared-values notifications-data]]]])) + (when config/show-not-implemented-features? + [bottom-tab :i/browser :browser-stack shared-values notifications-data])]]]))