mirror of
https://github.com/status-im/status-react.git
synced 2025-02-26 09:35:36 +00:00
Co-authored-by: Lungu Cristian <lungucristian95@gmail.com>
This commit is contained in:
parent
2df7a7cf6d
commit
7642adf32c
@ -169,10 +169,12 @@
|
|||||||
(rf/dispatch [:navigate-to :camera-screen]))))
|
(rf/dispatch [:navigate-to :camera-screen]))))
|
||||||
|
|
||||||
(defn camera-button
|
(defn camera-button
|
||||||
[]
|
[edit]
|
||||||
(let [images-count (count (vals (rf/sub [:chats/sending-image])))]
|
(let [images-count (count (vals (rf/sub [:chats/sending-image])))]
|
||||||
[quo/composer-button
|
[quo/composer-button
|
||||||
{:on-press #(go-to-camera images-count)
|
{:on-press (if edit
|
||||||
|
#(js/alert "This feature is temporarily unavailable in edit mode.")
|
||||||
|
#(go-to-camera images-count))
|
||||||
:icon :i/camera
|
:icon :i/camera
|
||||||
:container-style {:margin-right 12}}]))
|
:container-style {:margin-right 12}}]))
|
||||||
|
|
||||||
@ -195,9 +197,11 @@
|
|||||||
:t/external-storage-denied)))}))
|
:t/external-storage-denied)))}))
|
||||||
|
|
||||||
(defn image-button
|
(defn image-button
|
||||||
[props animations insets]
|
[props animations insets edit]
|
||||||
[quo/composer-button
|
[quo/composer-button
|
||||||
{:on-press #(open-photo-selector props animations insets)
|
{:on-press (if edit
|
||||||
|
#(js/alert "This feature is temporarily unavailable in edit mode.")
|
||||||
|
#(open-photo-selector props animations insets))
|
||||||
:accessibility-label :open-images-button
|
:accessibility-label :open-images-button
|
||||||
:container-style {:margin-right 12}
|
:container-style {:margin-right 12}
|
||||||
:icon :i/image}])
|
:icon :i/image}])
|
||||||
@ -223,8 +227,8 @@
|
|||||||
[rn/view
|
[rn/view
|
||||||
{:style {:flex-direction :row
|
{:style {:flex-direction :row
|
||||||
:display (if @(:recording? state) :none :flex)}}
|
:display (if @(:recording? state) :none :flex)}}
|
||||||
[camera-button]
|
[camera-button edit]
|
||||||
[image-button props animations insets]
|
[image-button props animations insets edit]
|
||||||
[reaction-button]
|
[reaction-button]
|
||||||
[format-button]]
|
[format-button]]
|
||||||
[:f> send-button props state animations window-height images edit send-btn-opacity
|
[:f> send-button props state animations window-height images edit send-btn-opacity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user