Skip to content

Commit

Permalink
Reverted back suppressed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vkjr committed Jan 2, 2025
1 parent e9c4fb5 commit f0cb6ce
Show file tree
Hide file tree
Showing 75 changed files with 1 addition and 218 deletions.
2 changes: 0 additions & 2 deletions src/legacy/status_im/browser/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
[legacy.status-im.ethereum.ens :as ens]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.ui.components.list-selection :as list-selection]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]
[legacy.status-im.utils.random :as random]
[native-module.core :as native-module]
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/chat/models/message.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
[clojure.string :as string]
[legacy.status-im.chat.models.loading :as chat.loading]
[legacy.status-im.data-store.messages :as data-store.messages]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]
[react-native.platform :as platform]
[status-im.contexts.chat.messenger.messages.delete-message.events :as delete-message]
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/data_store/chats.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
[clojure.set :as set]
[clojure.string :as string]
[legacy.status-im.data-store.messages :as messages]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]
[re-frame.core :as re-frame]
[status-im.common.json-rpc.events :as json-rpc]
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/multiaccounts/create/core.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
(ns legacy.status-im.multiaccounts.create.core
(:require
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/multiaccounts/login/core.cljs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(ns legacy.status-im.multiaccounts.login.core
(:require
[legacy.status-im.ui.components.react :as react]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/multiaccounts/update/core.cljs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(ns legacy.status-im.multiaccounts.update.core
(:require
[legacy.status-im.data-store.settings :as settings]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]
[status-im.constants :as constants]
[taoensso.timbre :as log]
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/node/core.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
(ns legacy.status-im.node.core
(:require
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]))

(defn fleets
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/ui/components/button/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@
:else theme)
{:keys [icon-color background-color text-color border-color]}
(themes theme')]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
[rn/touchable-without-feedback
(merge {:disabled disabled
:accessibility-label accessibility-label}
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/status_im/utils/logging/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
[goog.string :as gstring]
[legacy.status-im.ui.components.react :as react]
[legacy.status-im.utils.build :as build]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-namespace]}
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/avatars/group_avatar/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
(:require
[quo.foundations.colors :as colors]))

;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(defn container
[{:keys [container-size customization-color theme]}]
{:width container-size
Expand Down
6 changes: 0 additions & 6 deletions src/quo/components/avatars/wallet_user_avatar/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@
[customization-color neutral? theme]
(if neutral?
(colors/theme-colors colors/neutral-80-opa-5 colors/white-opa-5 theme)
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50 20)))

(defn- text-color
[customization-color neutral? theme]
(if neutral?
(colors/theme-colors colors/neutral-80-opa-70 colors/white-opa-70 theme)
(colors/theme-colors
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50)
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 60)
theme)))

Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/banners/banner/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
(:require
[quo.foundations.colors :as colors]))

;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(def container
{:height 40
:background-color (colors/custom-color :blue 50 20)
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/browser/browser_input/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@

(defn cursor-color
[customization-color theme]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/theme-colors (colors/custom-color customization-color 50)
(colors/custom-color customization-color 60)
theme))
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/buttons/button/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
(fn []
(set-pressed-state nil)
(when on-press-out (on-press-out))))]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
[rn/touchable-without-feedback
{:disabled (boolean disabled?)
:accessibility-label accessibility-label
Expand Down
8 changes: 0 additions & 8 deletions src/quo/components/buttons/dynamic_button/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,11 @@
(if (= type :mention)
(if pressed?
(colors/theme-colors
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 60)
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50)
theme)
(colors/theme-colors
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50)
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 60)
theme))
(if pressed?
Expand Down
6 changes: 0 additions & 6 deletions src/quo/components/buttons/slide_button/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
(defn main-color
"`customization-color` Customization color"
[customization-color theme]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/theme-colors
(colors/custom-color customization-color 50)
(colors/custom-color customization-color 60)
Expand All @@ -18,17 +16,13 @@
([customization-color blur?]
(if blur?
colors/white-opa-5
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50 10))))

(defn text-color
"`customization-color` Customization color"
[customization-color theme blur?]
(if blur?
colors/white-opa-40
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/theme-colors
(colors/custom-color customization-color 50)
(colors/custom-color customization-color 60)
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/colors/color/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

hex-color (if (= :feng-shui color)
(colors/theme-colors colors/neutral-100 colors/white theme)
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/theme-colors (colors/custom-color color 50)
(colors/custom-color color 60)
theme))]
Expand Down
4 changes: 0 additions & 4 deletions src/quo/components/common/notification_dot/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
[customization-color theme blur?]
(cond
customization-color (colors/theme-colors
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50)
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 60)
theme)
blur? (colors/theme-colors colors/neutral-80-opa-40 colors/white-opa-40 theme)
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/community/banner/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
(defn view
[{:keys [title description on-press accessibility-label banner style]}]
(let [theme (quo.theme/use-theme)]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
[rn/touchable-without-feedback
{:on-press on-press
:accessibility-label accessibility-label}
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/community/community_card_view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
[{:keys [community on-press width]}]
(let [theme (quo.theme/use-theme)
{:keys [name description locked? images cover status tokens tags]} community]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
[rn/touchable-without-feedback
{:accessibility-label :community-card-item
:on-press on-press}
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/counter/counter/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

(defn get-color
[type customization-color theme]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(case type
:default (colors/theme-colors (colors/custom-color customization-color 50)
(colors/custom-color customization-color 60)
Expand Down
4 changes: 0 additions & 4 deletions src/quo/components/counter/step/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
(colors/theme-colors colors/neutral-80-opa-5 colors/white-opa-10 theme)
(colors/theme-colors colors/neutral-20 colors/neutral-80 theme)))

;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(defn active-background-color [customization-color] (colors/custom-color customization-color 50 10))

;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(defn complete-background-color [customization-color] (colors/custom-color customization-color 50))

(defn container
Expand Down
3 changes: 1 addition & 2 deletions src/quo/components/dividers/strength_divider/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
[react-native.svg :as svg]
[utils.i18n :as i18n]))

;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}

(def strength-divider-types
{:very-weak {:default-text (i18n/label :t/strength-divider-very-weak-label)
:color colors/danger-60
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/dropdowns/dropdown/properties.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

(defn- custom-color-type
[customization-color]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
{:left-icon-color colors/white-opa-70
:right-icon-color colors/white-opa-20
:right-icon-color-2 colors/white
Expand Down
6 changes: 0 additions & 6 deletions src/quo/components/graph/interactive_graph/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@
colors/neutral-95
theme)
customization-color (colors/theme-colors
;; deprecated warning suppressed but please rewrite if you
;; have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 60)
;; deprecated warning suppressed but please rewrite if you
;; have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50)
theme)
y-axis-label-texts (utils/calculate-y-axis-labels min-value step-value 4)
Expand Down
4 changes: 0 additions & 4 deletions src/quo/components/graph/wallet_graph/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@
(= state :positive) :success
:else :danger)]
(colors/theme-colors
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color color-keyword 50)
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color color-keyword 60)
theme)))

Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/inputs/address_input/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
(defn- positive-state-icon
[theme]
[rn/view {:style style/clear-icon-container}
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
[icon/icon :i/positive-state
{:color (colors/theme-colors (colors/custom-color :success 50)
(colors/custom-color :success 60)
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/inputs/input/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

(defn variants-colors
[blur? theme]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(if blur?
{:label (colors/theme-colors colors/neutral-80-opa-40 colors/white-opa-40 theme)
:icon (colors/theme-colors colors/neutral-80-opa-70 colors/white-opa-70 theme)
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/inputs/profile_input/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

(defn container
[customization-color]
;; deprcated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
{:background-color (colors/custom-color customization-color 50 40)
:padding-horizontal 12
:padding-top 12
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/inputs/recovery_phrase/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

(defn cursor-color
[customization-color theme]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/theme-colors (colors/custom-color customization-color 50)
(colors/custom-color customization-color 60)
theme))
Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/inputs/title_input/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
(colors/theme-colors colors/neutral-80-opa-40 colors/white-opa-40 theme)
(colors/theme-colors colors/neutral-40 colors/neutral-50 theme)))

;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(defn get-selection-color
[customization-color blur? theme]
(colors/alpha (if blur?
Expand Down
4 changes: 0 additions & 4 deletions src/quo/components/list_items/address/component_spec.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
(h/test "on-press-in changes state to :pressed"
(h/render-with-theme-provider [address/view (with-defaults)])
(h/fire-event :on-press-in (h/get-by-label-text :container))
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(h/wait-for #(h/has-style (h/query-by-label-text :container)
{:backgroundColor (colors/custom-color :blue 50 5)})))

Expand All @@ -31,8 +29,6 @@
(h/render-with-theme-provider [address/view (with-defaults {:active-state? true})])
(h/fire-event :on-press-in (h/get-by-label-text :container))
(h/fire-event :on-press-out (h/get-by-label-text :container))
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(h/wait-for #(h/has-style (h/query-by-label-text :container)
{:backgroundColor (colors/custom-color :blue 50 10)})))

Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/list_items/address/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

(defn- background-color
[state customization-color blur?]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(cond (and (or (= state :pressed) (= state :selected)) (not blur?))
(colors/custom-color customization-color 50 5)
(and (or (= state :pressed) (= state :selected)) blur?)
Expand Down
12 changes: 0 additions & 12 deletions src/quo/components/list_items/dapp/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,14 @@
(and pressed? (= theme :dark) blur?) colors/white-opa-5

pressed? (colors/theme-colors
;; deprecated warning suppressed but please
;; rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50 5)
;; deprecated warning suppressed but please
;; rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 60 5)
theme)

(and (= state :active) (= theme :dark) blur?) colors/white-opa-10

(= state :active) (colors/theme-colors
;; deprecated warning suppressed but please
;; rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 50 10)
;; deprecated warning suppressed but please
;; rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(colors/custom-color customization-color 60 10)
theme)

Expand Down
2 changes: 0 additions & 2 deletions src/quo/components/list_items/saved_address/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

(defn- background-color
[{:keys [state blur? customization-color]}]
;; deprecated warning suppressed but please rewrite if you have time
#_{:clj-kondo/ignore [:deprecated-var]}
(cond (and (or (= state :pressed) (= state :selected)) (not blur?))
(colors/custom-color customization-color 50 5)
(and (or (= state :pressed) (= state :selected)) blur?)
Expand Down
Loading

0 comments on commit f0cb6ce

Please sign in to comment.