Hide community banner

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2020-12-24 10:54:56 +01:00
parent 6342163152
commit d8f1944b27
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 10 additions and 7 deletions

View File

@ -20,6 +20,7 @@
[status-im.ui.screens.add-new.new-public-chat.db :as db] [status-im.ui.screens.add-new.new-public-chat.db :as db]
[status-im.utils.debounce :as debounce] [status-im.utils.debounce :as debounce]
[status-im.utils.utils :as utils] [status-im.utils.utils :as utils]
[status-im.utils.config :as config]
[cljs-bean.core :as bean] [cljs-bean.core :as bean]
[status-im.multiaccounts.login.core :as multiaccounts.login] [status-im.multiaccounts.login.core :as multiaccounts.login]
[status-im.ui.components.invite.views :as invite] [status-im.ui.components.invite.views :as invite]
@ -82,13 +83,15 @@
[react/view {:flex-direction :row :flex-wrap :wrap :justify-content :center} [react/view {:flex-direction :row :flex-wrap :wrap :justify-content :center}
(for [chat (new-public-chat/featured-public-chats)] (for [chat (new-public-chat/featured-public-chats)]
(new-public-chat/render-topic chat))]] (new-public-chat/render-topic chat))]]
(when config/communities-enabled?
[react/view
[react/i18n-text {:style {:margin-horizontal 16 [react/i18n-text {:style {:margin-horizontal 16
:text-align :center} :text-align :center}
:key :join-a-community}] :key :join-a-community}]
[react/view {:style styles/tags-wrapper} [react/view {:style styles/tags-wrapper}
[react/view {:flex-direction :row :flex-wrap :wrap :justify-content :center} [react/view {:flex-direction :row :flex-wrap :wrap :justify-content :center}
(for [community communities/featured] (for [community communities/featured]
(communities.views/render-featured-community community))]]]]) (communities.views/render-featured-community community))]]])]])
(defn welcome-blank-page [] (defn welcome-blank-page []
[react/view {:style {:flex 1 :flex-direction :row :align-items :center :justify-content :center}} [react/view {:style {:flex 1 :flex-direction :row :align-items :center :justify-content :center}}