Hide channel list at token-gated communities overview (#17901)
This commit hides the categorized channel list for token-gated communities overview.
This commit is contained in:
parent
4a44161163
commit
ec4046e543
|
@ -255,7 +255,7 @@
|
||||||
(defn community-content
|
(defn community-content
|
||||||
[community]
|
[community]
|
||||||
(rf/dispatch [:communities/check-all-community-channels-permissions (:id community)])
|
(rf/dispatch [:communities/check-all-community-channels-permissions (:id community)])
|
||||||
(fn [{:keys [name description joined images tags color id] :as community}
|
(fn [{:keys [name description joined images tags color id token-permissions] :as community}
|
||||||
pending?
|
pending?
|
||||||
{:keys [on-category-layout
|
{:keys [on-category-layout
|
||||||
collapsed?
|
collapsed?
|
||||||
|
@ -273,12 +273,14 @@
|
||||||
:last-item-style style/last-community-tag
|
:last-item-style style/last-community-tag
|
||||||
:container-style style/community-tag-container}])
|
:container-style style/community-tag-container}])
|
||||||
[join-community community pending?]]
|
[join-community community pending?]]
|
||||||
[channel-list-component
|
(when (or (and (seq token-permissions) joined)
|
||||||
{:on-category-layout on-category-layout
|
(empty? token-permissions))
|
||||||
:community-id id
|
[channel-list-component
|
||||||
:community-color color
|
{:on-category-layout on-category-layout
|
||||||
:on-first-channel-height-changed on-first-channel-height-changed}
|
:community-id id
|
||||||
(add-handlers-to-categorized-chats id chats-by-category joined)]])))
|
:community-color color
|
||||||
|
:on-first-channel-height-changed on-first-channel-height-changed}
|
||||||
|
(add-handlers-to-categorized-chats id chats-by-category joined)])])))
|
||||||
|
|
||||||
(defn sticky-category-header
|
(defn sticky-category-header
|
||||||
[_]
|
[_]
|
||||||
|
|
Loading…
Reference in New Issue