Skip to content

Commit cb2d98d

Browse files
ajayesivanibrkhalil
authored andcommitted
Remove old quo code from status_im2 namespace (#17404)
1 parent 3dcc01a commit cb2d98d

File tree

8 files changed

+23
-13
lines changed

8 files changed

+23
-13
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ endef
311311
lint: export TARGET := clojure
312312
lint: ##@test Run code style checks
313313
@sh scripts/lint-re-frame-in-quo-components.sh && \
314+
sh scripts/lint-old-quo-usage.sh \
314315
clj-kondo --config .clj-kondo/config.edn --cache false --fail-level error --lint src && \
315316
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
316317
zprint '{:search-config? true}' -sfc $$ALL_CLOJURE_FILES && \

scripts/lint-old-quo-usage.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(ns status-im2.common.qr-code-viewer.style
2-
(:require [quo.design-system.colors :as colors]))
2+
(:require [quo2.foundations.colors :as colors]))
33

44
(def qr-code-padding 16)
55

@@ -9,9 +9,7 @@
99
:width width
1010
:height width
1111
:padding-horizontal 16
12-
:background-color colors/white-persist
13-
:border-color colors/black-transparent
12+
:background-color colors/white
1413
:align-items :center
1514
:justify-content :center
16-
:border-width 1
1715
:border-radius 8})

src/status_im2/contexts/chat/messages/content/text/style.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(ns status-im2.contexts.chat.messages.content.text.style
22
(:require [quo2.foundations.colors :as colors]
3-
[quo.platform :as platform]))
3+
[react-native.platform :as platform]))
44

55
(def block
66
{:border-radius 6

src/status_im2/contexts/quo_preview/community/community_card_view.cljs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(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]
43
[reagent.core :as reagent]
54
[status-im2.common.resources :as resources]
65
[status-im2.contexts.quo-preview.preview :as preview]
@@ -13,7 +12,7 @@
1312
"Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
1413
:cover (resources/get-mock-image :community-cover)
1514
:community-icon (resources/get-mock-image :status-logo)
16-
:color (rand-nth quo.colors/chat-colors)
15+
:customization-color :blue
1716
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}]}]
1817
:tags [{:id 1
1918
:tag-label (i18n/label :t/music)

src/status_im2/contexts/quo_preview/community/data.cljs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(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]
43
[status-im2.common.resources :as resources]))
54

65
(def thumbnail
@@ -11,8 +10,8 @@
1110
:name "Status"
1211
:description
1312
"Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
13+
:customization-color :blue
1414
:community-icon thumbnail
15-
:color (rand-nth quo.colors/chat-colors)
1615
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}]}]
1716
:tags [{:id 1 :tag-label (i18n/label :t/music) :resource (resources/get-image :music)}
1817
{:id 2

src/status_im2/contexts/quo_preview/inputs/profile_input.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[reagent.core :as reagent]
44
[status-im2.common.resources :as resources]
55
[status-im2.contexts.quo-preview.preview :as preview]
6-
[quo.react-native :as rn]))
6+
[react-native.core :as rn]))
77

88
(def descriptor
99
[{:key :disabled?

src/status_im2/contexts/quo_preview/tags/tag.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(ns status-im2.contexts.quo-preview.tags.tag
2-
(:require [quo.react-native :as rn]
2+
(:require [react-native.core :as rn]
33
[quo2.foundations.colors :as colors]
44
[quo2.components.tags.tag :as tag]
55
[status-im.ui.components.react :as react]

0 commit comments

Comments
 (0)