Skip to content

Commit

Permalink
fix theme switching
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayesivan committed Sep 26, 2023
1 parent ecd7ea2 commit 4ef5b5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/lint-old-quo-usage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

QUO_USAGES=$(grep -r -E '\[quo\.[^ ]* :as' --include '*.cljs' --include '*.clj' './src/status_im2' || true)
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)

echo -e "\nChecking 'status_im2' namespace for 'quo' namespace usage."

Expand Down
6 changes: 4 additions & 2 deletions src/status_im2/common/theme/core.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns status-im2.common.theme.core
(:require [quo2.theme :as quo.theme]
(:require [quo.theme :as quo]
[quo2.theme :as quo2]
[utils.re-frame :as rf]
[oops.core :refer [oget]]
[react-native.core :as rn]
Expand Down Expand Up @@ -30,4 +31,5 @@

(defn set-theme
[value]
(quo.theme/set-theme value))
(quo/set-theme value)
(quo2/set-theme value))

0 comments on commit 4ef5b5e

Please sign in to comment.