From 7b12f2acae1dfa819082575c263ea82c138be7f1 Mon Sep 17 00:00:00 2001 From: ibrahem Date: Fri, 30 Dec 2022 16:22:28 +0200 Subject: [PATCH] Lint --- .../ui/screens/bottom_sheets/views.cljs | 15 ++++++++------- src/status_im2/common/home/actions/view.cljs | 16 ++++++++-------- .../chat/messages/content/reactions/view.cljs | 2 +- .../contexts/chat/messages/content/view.cljs | 3 ++- .../contexts/chat/messages/drawers/view.cljs | 4 ++-- 5 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/status_im/ui/screens/bottom_sheets/views.cljs b/src/status_im/ui/screens/bottom_sheets/views.cljs index 25de8e0b80..ae6848d34b 100644 --- a/src/status_im/ui/screens/bottom_sheets/views.cljs +++ b/src/status_im/ui/screens/bottom_sheets/views.cljs @@ -49,16 +49,17 @@ (= view :pinned-messages-list) (merge {:content pin.list/pinned-messages-list}) - + (= view :drawer/reactions) (merge {:content drawers/reactions}))] (reagent/create-class {:reagent-render (fn [] - [bottom-sheet/bottom-sheet (case view - :new-chat-bottom-sheet - (assoc opts :initial-height 150) - :drawer/reactions - (assoc opts :initial-height 100) - opts) + [bottom-sheet/bottom-sheet + (case view + :new-chat-bottom-sheet + (assoc opts :initial-height 150) + :drawer/reactions + (assoc opts :initial-height 100) + opts) (when content [content (when options options)])]) :component-will-unmount (fn [] diff --git a/src/status_im2/common/home/actions/view.cljs b/src/status_im2/common/home/actions/view.cljs index 983c95a639..4e3a613ef8 100644 --- a/src/status_im2/common/home/actions/view.cljs +++ b/src/status_im2/common/home/actions/view.cljs @@ -1,13 +1,13 @@ (ns status-im2.common.home.actions.view (:require ;;TODO move to - ;;status-im2 - [i18n.i18n :as i18n] - [quo2.components.drawers.action-drawers :as drawer] - [status-im.chat.models :as chat.models] - [status-im2.common.bottom-sheet.view :refer [close-bottom-sheet-fn]] - [status-im2.common.confirmation-drawer.view :as confirmation-drawer] ;;TODO move to - [status-im2.common.constants :as constants] - [utils.re-frame :as rf])) + ;;status-im2 + [i18n.i18n :as i18n] + [quo2.components.drawers.action-drawers :as drawer] + [status-im.chat.models :as chat.models] + [status-im2.common.bottom-sheet.view :refer [close-bottom-sheet-fn]] + [status-im2.common.confirmation-drawer.view :as confirmation-drawer] ;;TODO move to + [status-im2.common.constants :as constants] + [utils.re-frame :as rf])) (defn- entry [{:keys [icon label on-press danger? sub-label chevron? add-divider? accessibility-label]}] diff --git a/src/status_im2/contexts/chat/messages/content/reactions/view.cljs b/src/status_im2/contexts/chat/messages/content/reactions/view.cljs index 74d99ee501..50fd9609e8 100644 --- a/src/status_im2/contexts/chat/messages/content/reactions/view.cljs +++ b/src/status_im2/contexts/chat/messages/content/reactions/view.cljs @@ -28,5 +28,5 @@ [quo/add-reaction {:on-press #(do (rf/dispatch [:dismiss-keyboard]) - (rf/dispatch [:bottom-sheet/show-sheet :drawer/reactions :chat-id chat-id + (rf/dispatch [:bottom-sheet/show-sheet :drawer/reactions :chat-id chat-id :message-id message-id]))}]]))) diff --git a/src/status_im2/contexts/chat/messages/content/view.cljs b/src/status_im2/contexts/chat/messages/content/view.cljs index fa3f3a0900..d49da3edfd 100644 --- a/src/status_im2/contexts/chat/messages/content/view.cljs +++ b/src/status_im2/contexts/chat/messages/content/view.cljs @@ -72,7 +72,8 @@ :on-long-press #(do (rf/dispatch [:dismiss-keyboard]) (rf/dispatch [:bottom-sheet/show-sheet - {:content (drawers/reactions-and-actions message-data context)}]))} + {:content (drawers/reactions-and-actions message-data + context)}]))} [rn/view {:padding-vertical 8} (when (and (seq response-to) quoted-message) [old-message/quoted-message {:message-id response-to :chat-id chat-id} quoted-message]) diff --git a/src/status_im2/contexts/chat/messages/drawers/view.cljs b/src/status_im2/contexts/chat/messages/drawers/view.cljs index b1c99a0645..3c2559dab8 100644 --- a/src/status_im2/contexts/chat/messages/drawers/view.cljs +++ b/src/status_im2/contexts/chat/messages/drawers/view.cljs @@ -55,7 +55,7 @@ :on-press #(do (close-bottom-sheet-fn nil) (rf/dispatch [:chat.ui/delete-message-for-me message-data - constants/delete-message-for-me-undo-time-limit-ms])) + constants/delete-message-for-me-undo-time-limit-ms])) :label (i18n/label :t/delete-for-me) :icon :i/delete :id :delete-for-me}]) @@ -64,7 +64,7 @@ :on-press #(do (close-bottom-sheet-fn nil) (rf/dispatch [:chat.ui/delete-message message-data - constants/delete-message-undo-time-limit-ms])) + constants/delete-message-undo-time-limit-ms])) :label (i18n/label :t/delete-for-everyone) :icon :i/delete :id :delete-for-all}])))