parent
1c50dc7067
commit
9826898b00
|
@ -21,8 +21,11 @@
|
|||
(defn channel-actions
|
||||
[{:keys [style actions]}]
|
||||
[rn/view {:style (merge {:flex-direction :row :flex 1} style)}
|
||||
(for [action actions]
|
||||
(map-indexed
|
||||
(fn [index action]
|
||||
^{:key index}
|
||||
[:<>
|
||||
[channel-action action]
|
||||
(when (not= action (last actions))
|
||||
[rn/view {:width 16}])])])
|
||||
[rn/view {:width 16}])])
|
||||
actions)])
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue