Skip to content

Commit bb3b306

Browse files
authored
fix navigation to community from discover communities screen (#16702)
1 parent 0067468 commit bb3b306

File tree

1 file changed

+4
-4
lines changed
  • src/status_im2/contexts/communities/discover

1 file changed

+4
-4
lines changed

src/status_im2/contexts/communities/discover/view.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
cover {:uri (get-in (:images item) [:banner :uri])}]
2929
(if (= view-type :card-view)
3030
[quo/community-card-view-item (assoc item :width width :cover cover)
31-
#(rf/dispatch [:navigate-to :community-overview (:id item)])]
31+
#(rf/dispatch [:communities/navigate-to-community (:id item)])]
3232
[quo/community-list-item
3333
{:on-press (fn []
3434
(rf/dispatch [:communities/load-category-states (:id item)])
3535
(rf/dispatch [:dismiss-keyboard])
36-
(rf/dispatch [:navigate-to :community-overview (:id item)]))
36+
(rf/dispatch [:communities/navigate-to-community (:id item)]))
3737
:on-long-press #(rf/dispatch
3838
[:show-bottom-sheet
3939
{:content (fn []
@@ -141,12 +141,12 @@
141141
(merge community
142142
(get mock-community-item-data :data)
143143
{:cover cover})
144-
#(rf/dispatch [:navigate-to :community-overview (:id community)])]
144+
#(rf/dispatch [:communities/navigate-to-community (:id community)])]
145145
[quo/community-list-item
146146
{:on-press (fn []
147147
(rf/dispatch [:communities/load-category-states (:id community)])
148148
(rf/dispatch [:dismiss-keyboard])
149-
(rf/dispatch [:navigate-to :community-overview (:id community)]))
149+
(rf/dispatch [:communities/navigate-to-community (:id community)]))
150150
:on-long-press #(js/alert "TODO: to be implemented")}
151151
(merge community
152152
(get mock-community-item-data :data))])]))

0 commit comments

Comments
 (0)