From 74906cabb2247662152b8c57e9a31a28f564a0b3 Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil Date: Tue, 6 Jun 2023 09:45:36 +0300 Subject: [PATCH] [16166] The reaction are not matched to the designs into the 'who sent' bottom sheet (#16168) --- .../contexts/chat/messages/drawers/style.cljs | 5 ++++- .../contexts/chat/messages/drawers/view.cljs | 11 ++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/status_im2/contexts/chat/messages/drawers/style.cljs b/src/status_im2/contexts/chat/messages/drawers/style.cljs index a48b6abe60..f31504ecd7 100644 --- a/src/status_im2/contexts/chat/messages/drawers/style.cljs +++ b/src/status_im2/contexts/chat/messages/drawers/style.cljs @@ -6,7 +6,10 @@ :align-items :center :justify-content :center}) -(def tab-icon {:margin-right 4}) +(def tab-icon + {:margin-right 4 + :width 20 + :height 20}) (defn tab-count [active?] diff --git a/src/status_im2/contexts/chat/messages/drawers/view.cljs b/src/status_im2/contexts/chat/messages/drawers/view.cljs index a063ecbd53..28665eb37b 100644 --- a/src/status_im2/contexts/chat/messages/drawers/view.cljs +++ b/src/status_im2/contexts/chat/messages/drawers/view.cljs @@ -9,7 +9,8 @@ [reagent.core :as reagent] [status-im2.common.contact-list-item.view :as contact-list-item] [status-im2.contexts.chat.messages.drawers.style :as style] - [react-native.gesture :as gesture])) + [react-native.gesture :as gesture] + [quo2.components.reactions.resource :as reactions.resource])) (defn contact-list-item-fn [{:keys [from compressed-key]}] @@ -33,10 +34,10 @@ {:id reaction-type-int :accessibility-label (keyword (str "authors-for-reaction-" reaction-type-int)) :label [rn/view {:style style/tab} - [quo/icon - (get constants/reactions reaction-type-int) - {:no-color true - :container-style style/tab-icon}] + [rn/image + {:source (reactions.resource/get-reaction + (get constants/reactions reaction-type-int)) + :style style/tab-icon}] [quo/text {:weight :medium :size :paragraph-1