diff --git a/src/quo2/components/community/channel_actions.cljs b/src/quo2/components/community/channel_actions.cljs index 1bb0bb19a7..03aa48315a 100644 --- a/src/quo2/components/community/channel_actions.cljs +++ b/src/quo2/components/community/channel_actions.cljs @@ -21,8 +21,11 @@ (defn channel-actions [{:keys [style actions]}] [rn/view {:style (merge {:flex-direction :row :flex 1} style)} - (for [action actions] - [:<> - [channel-action action] - (when (not= action (last actions)) - [rn/view {:width 16}])])]) + (map-indexed + (fn [index action] + ^{:key index} + [:<> + [channel-action action] + (when (not= action (last actions)) + [rn/view {:width 16}])]) + actions)]) diff --git a/src/status_im2/contexts/quo_preview/community/channel_actions.cljs b/src/status_im2/contexts/quo_preview/community/channel_actions.cljs index f657260fe8..deb2a6e375 100644 --- a/src/status_im2/contexts/quo_preview/community/channel_actions.cljs +++ b/src/status_im2/contexts/quo_preview/community/channel_actions.cljs @@ -16,13 +16,10 @@ [channel-actions/channel-actions {:actions [{:label "Pinned Messages" :color :blue :icon :i/pin :counter-value 5} {:label "Mute chat" :color :blue :icon :i/muted}]}] - [rn/view {:height 50}] [channel-actions/channel-actions {:actions [{:big? true :label "Pinned Messages" :color :blue :icon :i/pin :counter-value 5} {:label "Mute chat" :color :blue :icon :i/muted}]}] - - [rn/view {:height 50}] [channel-actions/channel-actions {:actions [{:label "Pinned Messages" :color :blue :icon :i/pin :counter-value 5}