Lint
This commit is contained in:
@@ -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 []
|
||||
|
||||
@@ -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]}]
|
||||
|
||||
@@ -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]))}]])))
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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}])))
|
||||
|
||||
Reference in New Issue
Block a user