fix: comment out context tag in communities redesign as its causing issues (#14029)

This commit is contained in:
Jamie Caprani 2022-09-19 10:57:40 +01:00 committed by GitHub
parent 0c83801209
commit 528d05eec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,7 @@
(def mock-community-item-data ;; TODO: remove once communities are loaded with this data. (def mock-community-item-data ;; TODO: remove once communities are loaded with this data.
{:data {:status :gated {:data {:status :gated
:locked true :locked true
:images {:thumbnail {:uri (resources/get-image :status-logo)}} ;; :images {:thumbnail {:uri []}} ;; TODO address issue with context tag image
:cover (resources/get-image :community-cover) :cover (resources/get-image :community-cover)
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-image :status-logo)}]}] :tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-image :status-logo)}]}]
:tags [{:id 1 :tag-label (i18n/label :t/music) :resource (resources/get-image :music)} :tags [{:id 1 :tag-label (i18n/label :t/music) :resource (resources/get-image :music)}

View File

@ -8,7 +8,7 @@
[quo2.components.buttons.button :as quo2.button] [quo2.components.buttons.button :as quo2.button]
[quo2.components.icon :as quo2.icon] [quo2.components.icon :as quo2.icon]
[status-im.utils.handlers :refer [>evt]] [status-im.utils.handlers :refer [>evt]]
[quo2.components.tags.context-tags :as quo2.context-tags] ;; [quo2.components.tags.context-tags :as quo2.context-tags]
[status-im.communities.core :as communities] [status-im.communities.core :as communities]
[quo2.foundations.colors :as quo2.colors])) [quo2.foundations.colors :as quo2.colors]))
@ -115,9 +115,8 @@
:display :flex :display :flex
:justify-content :center}} :justify-content :center}}
[quo2.icon/icon :main-icons2/info]]] [quo2.icon/icon :main-icons2/info]]]
;; TODO address issue with context tag image
[quo2.context-tags/context-tag {:style {:margin-right :auto :margin-top 8}} (get-in community [:images :thumbnail :uri]) (:name community)] ;; [quo2.context-tags/context-tag {:style {:margin-right :auto :margin-top 8}} (get-in community [:images :thumbnail :uri]) (:name community)]
[quo2.text/text {:style {:margin-top 24} [quo2.text/text {:style {:margin-top 24}
:accessibility-label :communities-rules-title :accessibility-label :communities-rules-title
:weight :semi-bold :weight :semi-bold