File tree 8 files changed +23
-13
lines changed
chat/messages/content/text
8 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ endef
311
311
lint : export TARGET := clojure
312
312
lint : # #@test Run code style checks
313
313
@sh scripts/lint-re-frame-in-quo-components.sh && \
314
+ sh scripts/lint-old-quo-usage.sh \
314
315
clj-kondo --config .clj-kondo/config.edn --cache false --fail-level error --lint src && \
315
316
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
316
317
zprint ' {:search-config? true}' -sfc $$ ALL_CLOJURE_FILES && \
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ set -euo pipefail
4
+
5
+ QUO_USAGES=$( grep -r -E ' \[quo\.[^ ]* :(?:as|refer)|\[quo\.[^ ]*\]' --include ' *.cljs' --include ' *.clj' ' ./src/status_im2' --exclude=' ./src/status_im2/common/theme/core.cljs' || true)
6
+
7
+ echo -e " \nChecking 'status_im2' namespace for 'quo' namespace usage."
8
+
9
+ if [ -n " $QUO_USAGES " ]; then
10
+ echo -e " \033[0;31mERROR: Usage of the old 'quo' namespace detected in 'status_im2' code. Please update to 'quo2'. \n"
11
+ echo -e " $QUO_USAGES \033[0m"
12
+ exit 1
13
+ fi
Original file line number Diff line number Diff line change 1
1
(ns status-im2.common.qr-code-viewer.style
2
- (:require [quo.design-system .colors :as colors]))
2
+ (:require [quo2.foundations .colors :as colors]))
3
3
4
4
(def qr-code-padding 16 )
5
5
9
9
:width width
10
10
:height width
11
11
:padding-horizontal 16
12
- :background-color colors/white-persist
13
- :border-color colors/black-transparent
12
+ :background-color colors/white
14
13
:align-items :center
15
14
:justify-content :center
16
- :border-width 1
17
15
:border-radius 8 })
Original file line number Diff line number Diff line change 1
1
(ns status-im2.contexts.chat.messages.content.text.style
2
2
(:require [quo2.foundations.colors :as colors]
3
- [quo .platform :as platform]))
3
+ [react-native .platform :as platform]))
4
4
5
5
(def block
6
6
{:border-radius 6
Original file line number Diff line number Diff line change 1
1
(ns status-im2.contexts.quo-preview.community.community-card-view
2
- (:require [quo.design-system.colors :as quo.colors]
3
- [quo2.core :as quo]
2
+ (:require [quo2.core :as quo]
4
3
[reagent.core :as reagent]
5
4
[status-im2.common.resources :as resources]
6
5
[status-im2.contexts.quo-preview.preview :as preview]
13
12
" Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
14
13
:cover (resources/get-mock-image :community-cover )
15
14
:community-icon (resources/get-mock-image :status-logo )
16
- :color ( rand-nth quo.colors/chat-colors)
15
+ :customization- color :blue
17
16
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo )}]}]
18
17
:tags [{:id 1
19
18
:tag-label (i18n/label :t/music )
Original file line number Diff line number Diff line change 1
1
(ns status-im2.contexts.quo-preview.community.data
2
- (:require [quo.design-system.colors :as quo.colors]
3
- [utils.i18n :as i18n]
2
+ (:require [utils.i18n :as i18n]
4
3
[status-im2.common.resources :as resources]))
5
4
6
5
(def thumbnail
11
10
:name " Status"
12
11
:description
13
12
" Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
13
+ :customization-color :blue
14
14
:community-icon thumbnail
15
- :color (rand-nth quo.colors/chat-colors)
16
15
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo )}]}]
17
16
:tags [{:id 1 :tag-label (i18n/label :t/music ) :resource (resources/get-image :music )}
18
17
{:id 2
Original file line number Diff line number Diff line change 3
3
[reagent.core :as reagent]
4
4
[status-im2.common.resources :as resources]
5
5
[status-im2.contexts.quo-preview.preview :as preview]
6
- [quo. react-native :as rn]))
6
+ [react-native.core :as rn]))
7
7
8
8
(def descriptor
9
9
[{:key :disabled?
Original file line number Diff line number Diff line change 1
1
(ns status-im2.contexts.quo-preview.tags.tag
2
- (:require [quo. react-native :as rn]
2
+ (:require [react-native.core :as rn]
3
3
[quo2.foundations.colors :as colors]
4
4
[quo2.components.tags.tag :as tag]
5
5
[status-im.ui.components.react :as react]
You can’t perform that action at this time.
0 commit comments