fix: use custom color for confirm select (#18068)
This commit is contained in:
parent
5ebd133c63
commit
7e14846f0b
|
@ -35,7 +35,7 @@
|
||||||
(close))
|
(close))
|
||||||
|
|
||||||
(defn confirm-button
|
(defn confirm-button
|
||||||
[selected-images sending-image close]
|
[{:keys [selected-images sending-image close customization-color]}]
|
||||||
(when (not= selected-images sending-image)
|
(when (not= selected-images sending-image)
|
||||||
[linear-gradient/linear-gradient
|
[linear-gradient/linear-gradient
|
||||||
{:colors [:black :transparent]
|
{:colors [:black :transparent]
|
||||||
|
@ -43,7 +43,8 @@
|
||||||
:end {:x 0 :y 0}
|
:end {:x 0 :y 0}
|
||||||
:style (style/gradient-container (safe-area/get-bottom))}
|
:style (style/gradient-container (safe-area/get-bottom))}
|
||||||
[quo/button
|
[quo/button
|
||||||
{:container-style {:align-self :stretch
|
{:customization-color customization-color
|
||||||
|
:container-style {:align-self :stretch
|
||||||
:margin-horizontal 20
|
:margin-horizontal 20
|
||||||
:margin-top 12}
|
:margin-top 12}
|
||||||
:on-press #(on-press-confirm-selection selected-images close)
|
:on-press #(on-press-confirm-selection selected-images close)
|
||||||
|
@ -94,10 +95,11 @@
|
||||||
[{:keys [scroll-enabled on-scroll current-scroll close] :as sheet}]
|
[{:keys [scroll-enabled on-scroll current-scroll close] :as sheet}]
|
||||||
(rf/dispatch [:photo-selector/get-photos-for-selected-album])
|
(rf/dispatch [:photo-selector/get-photos-for-selected-album])
|
||||||
(rf/dispatch [:photo-selector/camera-roll-get-albums])
|
(rf/dispatch [:photo-selector/camera-roll-get-albums])
|
||||||
(let [album? (reagent/atom false)
|
(let [album? (reagent/atom false)
|
||||||
sending-image (into [] (vals (rf/sub [:chats/sending-image])))
|
customization-color (rf/sub [:profile/customization-color])
|
||||||
selected-images (reagent/atom sending-image)
|
sending-image (into [] (vals (rf/sub [:chats/sending-image])))
|
||||||
window-width (:width (rn/get-window))]
|
selected-images (reagent/atom sending-image)
|
||||||
|
window-width (:width (rn/get-window))]
|
||||||
[:f>
|
[:f>
|
||||||
(fn []
|
(fn []
|
||||||
(let [camera-roll-photos (rf/sub [:camera-roll/photos])
|
(let [camera-roll-photos (rf/sub [:camera-roll/photos])
|
||||||
|
@ -140,7 +142,11 @@
|
||||||
(rf/dispatch [:photo-selector/camera-roll-loading-more true])
|
(rf/dispatch [:photo-selector/camera-roll-loading-more true])
|
||||||
(rf/dispatch [:photo-selector/get-photos-for-selected-album
|
(rf/dispatch [:photo-selector/get-photos-for-selected-album
|
||||||
end-cursor])))}]
|
end-cursor])))}]
|
||||||
[confirm-button @selected-images sending-image close]]
|
[confirm-button
|
||||||
|
{:close close
|
||||||
|
:customization-color customization-color
|
||||||
|
:selected-images @selected-images
|
||||||
|
:sending-image sending-image}]]
|
||||||
[rn/view {:style style/buttons-container}
|
[rn/view {:style style/buttons-container}
|
||||||
[quo/dropdown
|
[quo/dropdown
|
||||||
{:type dropdown-type
|
{:type dropdown-type
|
||||||
|
|
Loading…
Reference in New Issue