Skip to content

Commit

Permalink
refactor: use map for props
Browse files Browse the repository at this point in the history
  • Loading branch information
BalogunofAfrica committed Dec 6, 2023
1 parent 7ab033e commit d5a074b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/status_im2/contexts/chat/photo_selector/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
(close))

(defn confirm-button
[selected-images sending-image close customization-color]
[{:keys [selected-images sending-image close customization-color]}]
(when (not= selected-images sending-image)
[linear-gradient/linear-gradient
{:colors [:black :transparent]
Expand Down Expand Up @@ -142,7 +142,11 @@
(rf/dispatch [:photo-selector/camera-roll-loading-more true])
(rf/dispatch [:photo-selector/get-photos-for-selected-album
end-cursor])))}]
[confirm-button @selected-images sending-image close customization-color]]
[confirm-button
{:close close
:customization-color customization-color
:selected-images @selected-images
:sending-image sending-image}]]
[rn/view {:style style/buttons-container}
[quo/dropdown
{:type dropdown-type
Expand Down

0 comments on commit d5a074b

Please sign in to comment.