From 4235c71b2f69144f0f75717494a3acf3dc092305 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Wed, 4 Oct 2023 15:12:16 +0530 Subject: [PATCH] Remove options to create community from mobile from release and nightly builds (#17495) --- .env | 1 + .env.release | 1 + .../contexts/communities/actions/home_plus/view.cljs | 10 +++++----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.env b/.env index e9cfd2e243f..094c61e7b7f 100644 --- a/.env +++ b/.env @@ -33,3 +33,4 @@ SWAP_ENABLED=1 STICKERS_TEST_ENABLED=1 LOCAL_PAIRING_ENABLED=1 TEST_STATEOFUS=1 +FAST_CREATE_COMMUNITY_ENABLED=1 diff --git a/.env.release b/.env.release index a9f588623da..977342b4afd 100644 --- a/.env.release +++ b/.env.release @@ -19,3 +19,4 @@ ENABLE_ROOT_ALERT=1 MAX_IMAGES_BATCH=1 DELETE_MESSAGE_ENABLED=1 COLLECTIBLES_ENABLED=1 +FAST_CREATE_COMMUNITY_ENABLED=0 diff --git a/src/status_im2/contexts/communities/actions/home_plus/view.cljs b/src/status_im2/contexts/communities/actions/home_plus/view.cljs index 772cebab422..0e2d98e43fa 100644 --- a/src/status_im2/contexts/communities/actions/home_plus/view.cljs +++ b/src/status_im2/contexts/communities/actions/home_plus/view.cljs @@ -9,13 +9,13 @@ [(concat [{:icon :i/download :accessibility-label :import-community :label "Import community" - :on-press #(rf/dispatch [:navigate-to :community-import])} - {:icon :i/communities - :accessibility-label :create-community - :label "Create community (only for e2e)" - :on-press #(rf/dispatch [:legacy-only-for-e2e/open-create-community])}] + :on-press #(rf/dispatch [:navigate-to :community-import])}] (when config/fast-create-community-enabled? [{:icon :i/communities + :accessibility-label :create-community + :label "Create community (only for e2e)" + :on-press #(rf/dispatch [:legacy-only-for-e2e/open-create-community])} + {:icon :i/communities :accessibility-label :create-closed-community :label "Create closed community" :on-press #(rf/dispatch [:fast-create-community/create-closed-community])}