From be823655425aaffc20064af5b2ce7a051ec0dcf7 Mon Sep 17 00:00:00 2001 From: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> Date: Thu, 25 Jul 2024 21:41:57 +0530 Subject: [PATCH] chore(settings)_: Remove testnet toggle from legacy advanced settings (#20875) This commit removes two toggles from legacy advanced settings - "Testnet mode" - duplicate toggle as the user can switch to testnet from wallet settings - "Enable Goerli as test network" - Goerli is depreciated and wallet services use Sepolia testnet as default. Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> --- .../ui/screens/advanced_settings/views.cljs | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/legacy/status_im/ui/screens/advanced_settings/views.cljs b/src/legacy/status_im/ui/screens/advanced_settings/views.cljs index 93f295653d..8fec1f87ac 100644 --- a/src/legacy/status_im/ui/screens/advanced_settings/views.cljs +++ b/src/legacy/status_im/ui/screens/advanced_settings/views.cljs @@ -20,8 +20,6 @@ light-client-enabled? store-confirmations-enabled? current-fleet - test-networks-enabled? - is-goerli-enabled? peer-syncing-enabled?]}] (keep identity @@ -87,22 +85,6 @@ [:wakuv2.ui/toggle-store-confirmations (not store-confirmations-enabled?)]) :accessory :switch :active store-confirmations-enabled?} - {:size :small - :title "Testnet mode" - :accessibility-label :test-networks-enabled - :container-margin-bottom 8 - :on-press - #(re-frame/dispatch [:profile.settings/toggle-test-networks]) - :accessory :switch - :active test-networks-enabled?} - {:size :small - :title "Enable Goerli as test network" - :accessibility-label :enable-sepolia-as-test-network - :container-margin-bottom 8 - :on-press - #(re-frame/dispatch [:profile.settings/toggle-goerli-test-network]) - :accessory :switch - :active is-goerli-enabled?} {:size :small :title "Peer syncing" :accessibility-label :peer-syncing @@ -124,9 +106,7 @@ (views/defview advanced-settings [] - (views/letsubs [test-networks-enabled? [:profile/test-networks-enabled?] - is-goerli-enabled? [:profile/is-goerli-enabled?] - light-client-enabled? [:profile/light-client-enabled?] + (views/letsubs [light-client-enabled? [:profile/light-client-enabled?] store-confirmations-enabled? [:profile/store-confirmations-enabled?] telemetry-enabled? [:profile/telemetry-enabled?] current-log-level [:log-level/current-log-level] @@ -147,8 +127,6 @@ :store-confirmations-enabled? store-confirmations-enabled? :current-fleet current-fleet :dev-mode? false - :test-networks-enabled? test-networks-enabled? - :is-goerli-enabled? is-goerli-enabled? :peer-syncing-enabled? peer-syncing-enabled?}) :key-fn (fn [_ i] (str i)) :render-fn render-item}]]))