Remove all status-im.ui.components.react usages in status-im2 (#17750)
This commit is contained in:
parent
cebec10aa5
commit
abbf29d4ca
|
@ -2,10 +2,10 @@
|
||||||
(:require
|
(:require
|
||||||
[quo.components.selectors.reaction-resource :as reactions.resource]
|
[quo.components.selectors.reaction-resource :as reactions.resource]
|
||||||
[quo.core :as quo]
|
[quo.core :as quo]
|
||||||
|
[react-native.clipboard :as clipboard]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[react-native.gesture :as gesture]
|
[react-native.gesture :as gesture]
|
||||||
[reagent.core :as reagent]
|
[reagent.core :as reagent]
|
||||||
[status-im.ui.components.react :as react]
|
|
||||||
[status-im2.common.contact-list-item.view :as contact-list-item]
|
[status-im2.common.contact-list-item.view :as contact-list-item]
|
||||||
[status-im2.constants :as constants]
|
[status-im2.constants :as constants]
|
||||||
[status-im2.contexts.chat.composer.reply.view :as reply]
|
[status-im2.contexts.chat.composer.reply.view :as reply]
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
(when (and (not (or deleted? deleted-for-me?))
|
(when (and (not (or deleted? deleted-for-me?))
|
||||||
(not= content-type constants/content-type-audio))
|
(not= content-type constants/content-type-audio))
|
||||||
[{:type :main
|
[{:type :main
|
||||||
:on-press #(react/copy-to-clipboard
|
:on-press #(clipboard/set-string
|
||||||
(reply/get-quoted-text-with-mentions
|
(reply/get-quoted-text-with-mentions
|
||||||
(get content :parsed-text)))
|
(get content :parsed-text)))
|
||||||
:label (i18n/label :t/copy-text)
|
:label (i18n/label :t/copy-text)
|
||||||
|
|
|
@ -2,12 +2,9 @@
|
||||||
(:require
|
(:require
|
||||||
[quo.foundations.colors :as colors]
|
[quo.foundations.colors :as colors]
|
||||||
[quo.foundations.typography :as typography]
|
[quo.foundations.typography :as typography]
|
||||||
[status-im.ui.components.react :as react]))
|
[react-native.core :as rn]))
|
||||||
|
|
||||||
(def screen-width
|
(def screen-width (:width (rn/get-window)))
|
||||||
(-> "window"
|
|
||||||
react/get-dimensions
|
|
||||||
:width))
|
|
||||||
|
|
||||||
(defn scale-dimensions
|
(defn scale-dimensions
|
||||||
"Scale a given height and width to be maximum percentage allowed of the screen width"
|
"Scale a given height and width to be maximum percentage allowed of the screen width"
|
||||||
|
@ -82,4 +79,3 @@
|
||||||
{:height 170})
|
{:height 170})
|
||||||
{:overflow :hidden
|
{:overflow :hidden
|
||||||
:border-radius 12}))
|
:border-radius 12}))
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
[quo.theme :as quo.theme]
|
[quo.theme :as quo.theme]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[reagent.core :as reagent]
|
[reagent.core :as reagent]
|
||||||
[status-im.ui.components.react :as react]
|
|
||||||
[status-im2.common.scroll-page.view :as scroll-page]
|
[status-im2.common.scroll-page.view :as scroll-page]
|
||||||
[status-im2.contexts.communities.actions.community-options.view :as options]
|
[status-im2.contexts.communities.actions.community-options.view :as options]
|
||||||
[status-im2.contexts.communities.discover.style :as style]
|
[status-im2.contexts.communities.discover.style :as style]
|
||||||
|
@ -117,7 +116,7 @@
|
||||||
featured-communities
|
featured-communities
|
||||||
view-type
|
view-type
|
||||||
selected-tab]}]
|
selected-tab]}]
|
||||||
[react/animated-view
|
[rn/view
|
||||||
[screen-title]
|
[screen-title]
|
||||||
(when (pos? featured-communities-count)
|
(when (pos? featured-communities-count)
|
||||||
[:<>
|
[:<>
|
||||||
|
|
Loading…
Reference in New Issue