Skip to content

Commit eb54258

Browse files
BalogunofAfricayevh-berdnyk
authored andcommitted
fix: use custom color for confirm select (#18068)
1 parent f3b6715 commit eb54258

File tree

1 file changed

+13
-7
lines changed
  • src/status_im2/contexts/chat/photo_selector

1 file changed

+13
-7
lines changed

src/status_im2/contexts/chat/photo_selector/view.cljs

+13-7
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@
3535
(close))
3636

3737
(defn confirm-button
38-
[selected-images sending-image close]
38+
[{:keys [selected-images sending-image close customization-color]}]
3939
(when (not= selected-images sending-image)
4040
[linear-gradient/linear-gradient
4141
{:colors [:black :transparent]
4242
:start {:x 0 :y 1}
4343
:end {:x 0 :y 0}
4444
:style (style/gradient-container (safe-area/get-bottom))}
4545
[quo/button
46-
{:container-style {:align-self :stretch
46+
{:customization-color customization-color
47+
:container-style {:align-self :stretch
4748
:margin-horizontal 20
4849
:margin-top 12}
4950
:on-press #(on-press-confirm-selection selected-images close)
@@ -94,10 +95,11 @@
9495
[{:keys [scroll-enabled on-scroll current-scroll close] :as sheet}]
9596
(rf/dispatch [:photo-selector/get-photos-for-selected-album])
9697
(rf/dispatch [:photo-selector/camera-roll-get-albums])
97-
(let [album? (reagent/atom false)
98-
sending-image (into [] (vals (rf/sub [:chats/sending-image])))
99-
selected-images (reagent/atom sending-image)
100-
window-width (:width (rn/get-window))]
98+
(let [album? (reagent/atom false)
99+
customization-color (rf/sub [:profile/customization-color])
100+
sending-image (into [] (vals (rf/sub [:chats/sending-image])))
101+
selected-images (reagent/atom sending-image)
102+
window-width (:width (rn/get-window))]
101103
[:f>
102104
(fn []
103105
(let [camera-roll-photos (rf/sub [:camera-roll/photos])
@@ -140,7 +142,11 @@
140142
(rf/dispatch [:photo-selector/camera-roll-loading-more true])
141143
(rf/dispatch [:photo-selector/get-photos-for-selected-album
142144
end-cursor])))}]
143-
[confirm-button @selected-images sending-image close]]
145+
[confirm-button
146+
{:close close
147+
:customization-color customization-color
148+
:selected-images @selected-images
149+
:sending-image sending-image}]]
144150
[rn/view {:style style/buttons-container}
145151
[quo/dropdown
146152
{:type dropdown-type

0 commit comments

Comments
 (0)