|
35 | 35 | (close))
|
36 | 36 |
|
37 | 37 | (defn confirm-button
|
38 |
| - [selected-images sending-image close] |
| 38 | + [{:keys [selected-images sending-image close customization-color]}] |
39 | 39 | (when (not= selected-images sending-image)
|
40 | 40 | [linear-gradient/linear-gradient
|
41 | 41 | {:colors [:black :transparent]
|
42 | 42 | :start {:x 0 :y 1}
|
43 | 43 | :end {:x 0 :y 0}
|
44 | 44 | :style (style/gradient-container (safe-area/get-bottom))}
|
45 | 45 | [quo/button
|
46 |
| - {:container-style {:align-self :stretch |
| 46 | + {:customization-color customization-color |
| 47 | + :container-style {:align-self :stretch |
47 | 48 | :margin-horizontal 20
|
48 | 49 | :margin-top 12}
|
49 | 50 | :on-press #(on-press-confirm-selection selected-images close)
|
|
94 | 95 | [{:keys [scroll-enabled on-scroll current-scroll close] :as sheet}]
|
95 | 96 | (rf/dispatch [:photo-selector/get-photos-for-selected-album])
|
96 | 97 | (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))] |
101 | 103 | [:f>
|
102 | 104 | (fn []
|
103 | 105 | (let [camera-roll-photos (rf/sub [:camera-roll/photos])
|
|
140 | 142 | (rf/dispatch [:photo-selector/camera-roll-loading-more true])
|
141 | 143 | (rf/dispatch [:photo-selector/get-photos-for-selected-album
|
142 | 144 | 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}]] |
144 | 150 | [rn/view {:style style/buttons-container}
|
145 | 151 | [quo/dropdown
|
146 | 152 | {:type dropdown-type
|
|
0 commit comments