Skip to content

Commit

Permalink
destructure some requires
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater committed Aug 1, 2022
1 parent 10ca392 commit f0f2175
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/status_im/ui/screens/chat/components/reply.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[status-im.ui.screens.chat.components.style :as styles]
[re-frame.core :as re-frame]
[clojure.string :as string]
[quo2.foundations.colors :as quo2.colors]
[quo2.foundations.colors :as quo2.colors :refer [theme-colors]]
[quo2.components.button :as quo2.button]
[quo2.components.text :as quo2.text]
[status-im.ui.screens.chat.photos :as photos]
Expand Down Expand Up @@ -87,7 +87,7 @@
content-type (or content-type contentType)]
[rn/view {:style {:flex-direction :row :height 24}}
[rn/view {:style (styles/reply-content)}
[icons/icon :main-icons/connector {:color (quo2.colors/theme-colors quo2.colors/neutral-40 quo2.colors/neutral-60)
[icons/icon :main-icons/connector {:color (theme-colors quo2.colors/neutral-40 quo2.colors/neutral-60)
:container-style {:position :absolute :left 10 :bottom -4 :width 16 :height 16}}]
[rn/view {:style {:position :absolute :left 34 :right 54 :top 3 :flex-direction :row :align-items :center}}
[photos/member-photo from identicon 16]
Expand All @@ -106,7 +106,7 @@
(when (or (= constants/content-type-image content-type)
(= constants/content-type-sticker content-type)
(= constants/content-type-audio content-type))
{:color (quo2.colors/theme-colors quo2.colors/neutral-50 quo2.colors/neutral-40)}))}
{:color (theme-colors quo2.colors/neutral-50 quo2.colors/neutral-40)}))}
(case (or content-type contentType)
constants/content-type-image "Image"
constants/content-type-sticker "Sticker"
Expand All @@ -121,7 +121,7 @@
:on-press #(re-frame/dispatch [:chat.ui/cancel-message-reply])}
[icons/icon :main-icons/close {:width 16
:height 16
:color (quo2.colors/theme-colors quo2.colors/black quo2.colors/neutral-40)}]]])]))
:color (theme-colors quo2.colors/black quo2.colors/neutral-40)}]]])]))

(defn send-image [images]
[rn/view {:style (styles/reply-container-image)}
Expand Down

0 comments on commit f0f2175

Please sign in to comment.