Enable ns sorting linter and clean+sort all namespaces (#17618)

This commit is contained in:
Icaro Motta 2023-10-16 22:03:18 +00:00 committed by GitHub
parent 00e9ee556a
commit 7ae96e86f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1285 changed files with 7373 additions and 6176 deletions

View File

@ -46,6 +46,7 @@
:single-operand-comparison {:level :error} :single-operand-comparison {:level :error}
:syntax {:level :error} :syntax {:level :error}
:unbound-destructuring-default {:level :error} :unbound-destructuring-default {:level :error}
:uninitialized-var {:level :error}
:unknown-require-option {:level :error} :unknown-require-option {:level :error}
:unreachable-code {:level :error} :unreachable-code {:level :error}
:unresolved-namespace {:level :error} :unresolved-namespace {:level :error}
@ -55,7 +56,7 @@
number number
status-im.test-helpers/restore-app-db]} status-im.test-helpers/restore-app-db]}
:unresolved-var {:level :error} :unresolved-var {:level :error}
:uninitialized-var {:level :error} :unsorted-required-namespaces {:level :error}
:unused-alias {:level :warning} :unused-alias {:level :warning}
:unused-binding {:level :error} :unused-binding {:level :error}
:unused-import {:level :error} :unused-import {:level :error}

View File

@ -1,6 +1,7 @@
(ns mocks.js-dependencies (ns mocks.js-dependencies
(:require-macros [status-im.utils.slurp :refer [slurp]]) (:require-macros [status-im.utils.slurp :refer [slurp]])
(:require [status-im.fleet.default-fleet :refer (default-fleets)]) (:require
[status-im.fleet.default-fleet :refer (default-fleets)])
(:require [status-im.utils.test :as utils.test])) (:require [status-im.utils.test :as utils.test]))
;; to generate a js Proxy at js/__STATUS_MOBILE_JS_IDENTITY_PROXY__ that accept any (.xxx) call and ;; to generate a js Proxy at js/__STATUS_MOBILE_JS_IDENTITY_PROXY__ that accept any (.xxx) call and

View File

@ -1,10 +1,11 @@
(ns native-module.core (ns native-module.core
(:require ["react-native" :as react-native] (:require
[utils.validators :as validators] ["react-native" :as react-native]
[taoensso.timbre :as log] [clojure.string :as string]
[react-native.platform :as platform] [react-native.platform :as platform]
[utils.transforms :as types] [taoensso.timbre :as log]
[clojure.string :as string])) [utils.transforms :as types]
[utils.validators :as validators]))
(defn status (defn status
[] []

View File

@ -1,6 +1,7 @@
(ns native-module.push-notifications (ns native-module.push-notifications
(:require ["react-native" :as react-native] (:require
[taoensso.timbre :as log])) ["react-native" :as react-native]
[taoensso.timbre :as log]))
(defn push-notification (defn push-notification
[] []

View File

@ -1,6 +1,7 @@
(ns quo2.components.animated-header-flatlist.style (ns quo2.components.animated-header-flatlist.style
(:require [quo2.foundations.colors :as colors] (:require
[react-native.reanimated :as reanimated])) [quo2.foundations.colors :as colors]
[react-native.reanimated :as reanimated]))
(defn container-view (defn container-view
[view-height] [view-height]

View File

@ -1,16 +1,16 @@
(ns quo2.components.animated-header-flatlist.view (ns quo2.components.animated-header-flatlist.view
(:require (:require
[oops.core :as oops]
[quo2.components.animated-header-flatlist.style :as style]
[quo2.core :as quo] [quo2.core :as quo]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn] [react-native.core :as rn]
[react-native.fast-image :as fast-image]
[react-native.platform :as platform] [react-native.platform :as platform]
[react-native.reanimated :as reanimated] [react-native.reanimated :as reanimated]
[react-native.safe-area :as safe-area] [react-native.safe-area :as safe-area]
[react-native.fast-image :as fast-image] [reagent.core :as reagent]))
[reagent.core :as reagent]
[quo2.foundations.colors :as colors]
[quo2.components.animated-header-flatlist.style :as style]
[oops.core :as oops]
[quo2.theme :as quo.theme]))
(def header-height 234) (def header-height 234)
(def cover-height 192) (def cover-height 192)

View File

@ -1,8 +1,9 @@
(ns quo2.components.avatars.account-avatar.component-spec (ns quo2.components.avatars.account-avatar.component-spec
(:require [quo2.components.avatars.account-avatar.view :as account-avatar] (:require
[quo2.components.avatars.account-avatar.style :as style] [quo2.components.avatars.account-avatar.style :as style]
[test-helpers.component :as h] [quo2.components.avatars.account-avatar.view :as account-avatar]
[quo2.foundations.colors :as colors])) [quo2.foundations.colors :as colors]
[test-helpers.component :as h]))
(h/describe "Account Avatar" (h/describe "Account Avatar"
(h/test "default render" (h/test "default render"

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.account-avatar.style (ns quo2.components.avatars.account-avatar.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def default-size 80) (def default-size 80)
(def default-border-radius 16) (def default-border-radius 16)

View File

@ -1,8 +1,9 @@
(ns quo2.components.avatars.account-avatar.view (ns quo2.components.avatars.account-avatar.view
(:require [clojure.string :as string] (:require
[quo2.components.avatars.account-avatar.style :as style] [clojure.string :as string]
[quo2.theme :as quo.theme] [quo2.components.avatars.account-avatar.style :as style]
[react-native.core :as rn])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal (defn- view-internal
"Opts: "Opts:

View File

@ -1,6 +1,7 @@
(ns quo2.components.avatars.channel-avatar.component-spec (ns quo2.components.avatars.channel-avatar.component-spec
(:require [quo2.components.avatars.channel-avatar.view :as component] (:require
[test-helpers.component :as h])) [quo2.components.avatars.channel-avatar.view :as component]
[test-helpers.component :as h]))
(h/describe "Channel Avatar" (h/describe "Channel Avatar"
(h/test "default render" (h/test "default render"

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.channel-avatar.style (ns quo2.components.avatars.channel-avatar.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def lock-icon-size 12) (def lock-icon-size 12)

View File

@ -1,12 +1,13 @@
(ns quo2.components.avatars.channel-avatar.view (ns quo2.components.avatars.channel-avatar.view
(:require [clojure.string :as string] (:require
[quo2.components.avatars.channel-avatar.style :as style] [clojure.string :as string]
[quo2.components.icon :as icons] [quo2.components.avatars.channel-avatar.style :as style]
[quo2.components.markdown.text :as text] [quo2.components.icon :as icons]
[quo2.foundations.colors :as colors] [quo2.components.markdown.text :as text]
[react-native.core :as rn] [quo2.foundations.colors :as colors]
[utils.string] [quo2.theme :as quo.theme]
[quo2.theme :as quo.theme])) [react-native.core :as rn]
[utils.string]))
(defn- initials (defn- initials
[{:keys [full-name size customization-color theme]}] [{:keys [full-name size customization-color theme]}]

View File

@ -1,7 +1,8 @@
(ns quo2.components.avatars.collection-avatar.component-spec (ns quo2.components.avatars.collection-avatar.component-spec
(:require [quo2.components.avatars.collection-avatar.view :as collection-avatar] (:require
[quo2.foundations.resources :as resources] [quo2.components.avatars.collection-avatar.view :as collection-avatar]
[test-helpers.component :as h])) [quo2.foundations.resources :as resources]
[test-helpers.component :as h]))
(h/describe "collection avatar" (h/describe "collection avatar"
(h/describe "Profile picture" (h/describe "Profile picture"

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.collection-avatar.style (ns quo2.components.avatars.collection-avatar.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn collection-avatar (defn collection-avatar
[theme] [theme]

View File

@ -1,7 +1,8 @@
(ns quo2.components.avatars.collection-avatar.view (ns quo2.components.avatars.collection-avatar.view
(:require [quo2.components.avatars.collection-avatar.style :as style] (:require
[quo2.theme :as quo.theme] [quo2.components.avatars.collection-avatar.style :as style]
[react-native.fast-image :as fast-image])) [quo2.theme :as quo.theme]
[react-native.fast-image :as fast-image]))
(defn- view-internal (defn- view-internal
"Opts: "Opts:

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.group-avatar.style (ns quo2.components.avatars.group-avatar.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn container (defn container
[{:keys [container-size customization-color theme]}] [{:keys [container-size customization-color theme]}]

View File

@ -1,10 +1,11 @@
(ns quo2.components.avatars.group-avatar.view (ns quo2.components.avatars.group-avatar.view
(:require [quo2.components.icon :as icon] (:require
[quo2.theme :as quo.theme] [quo2.components.avatars.group-avatar.style :as style]
[quo2.foundations.colors :as colors] [quo2.components.icon :as icon]
[react-native.core :as rn] [quo2.foundations.colors :as colors]
[react-native.fast-image :as fast-image] [quo2.theme :as quo.theme]
[quo2.components.avatars.group-avatar.style :as style])) [react-native.core :as rn]
[react-native.fast-image :as fast-image]))
(def sizes (def sizes
{:size-20 {:icon 12 {:size-20 {:icon 12

View File

@ -1,8 +1,9 @@
(ns quo2.components.avatars.icon-avatar (ns quo2.components.avatars.icon-avatar
(:require [quo2.components.icon :as icons] (:require
[quo2.foundations.colors :as colors] [quo2.components.icon :as icons]
[quo2.theme :as quo.theme] [quo2.foundations.colors :as colors]
[react-native.core :as rn])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(def ^:private sizes (def ^:private sizes
{:size-48 {:component 48 {:size-48 {:component 48

View File

@ -1,6 +1,7 @@
(ns quo2.components.avatars.user-avatar.component-spec (ns quo2.components.avatars.user-avatar.component-spec
(:require [quo2.components.avatars.user-avatar.view :as user-avatar] (:require
[test-helpers.component :as h])) [quo2.components.avatars.user-avatar.view :as user-avatar]
[test-helpers.component :as h]))
(defonce mock-picture {:uri (js/require "../resources/images/mock2/user_picture_male4.png")}) (defonce mock-picture {:uri (js/require "../resources/images/mock2/user_picture_male4.png")})

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.user-avatar.style (ns quo2.components.avatars.user-avatar.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def sizes (def sizes
{:big {:dimensions 80 {:big {:dimensions 80

View File

@ -1,9 +1,10 @@
(ns quo2.components.avatars.wallet-user-avatar (ns quo2.components.avatars.wallet-user-avatar
(:require [clojure.string :as string] (:require
[quo2.components.markdown.text :as text] [clojure.string :as string]
[quo2.foundations.colors :as colors] [quo2.components.markdown.text :as text]
[react-native.core :as rn] [quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(def circle-sizes (def circle-sizes
{:small 20 {:small 20

View File

@ -1,7 +1,8 @@
(ns quo2.components.banners.banner.component-spec (ns quo2.components.banners.banner.component-spec
(:require ["@testing-library/react-native" :as rtl] (:require
[quo2.components.banners.banner.view :as banner] ["@testing-library/react-native" :as rtl]
[reagent.core :as reagent])) [quo2.components.banners.banner.view :as banner]
[reagent.core :as reagent]))
(defn render-banner (defn render-banner
[opts] [opts]

View File

@ -1,5 +1,6 @@
(ns quo2.components.banners.banner.style (ns quo2.components.banners.banner.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def container (def container

View File

@ -1,11 +1,12 @@
(ns quo2.components.banners.banner.view (ns quo2.components.banners.banner.view
(:require [quo2.components.banners.banner.style :as style] (:require
[quo2.components.counter.counter.view :as counter] [quo2.components.banners.banner.style :as style]
[quo2.components.icon :as icons] [quo2.components.counter.counter.view :as counter]
[quo2.components.markdown.text :as text] [quo2.components.icon :as icons]
[quo2.foundations.colors :as colors] [quo2.components.markdown.text :as text]
[react-native.core :as rn] [quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal (defn- view-internal
[{:keys [hide-pin? latest-pin-text pins-count on-press theme]}] [{:keys [hide-pin? latest-pin-text pins-count on-press theme]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.browser.browser-input.component-spec (ns quo2.components.browser.browser-input.component-spec
(:require [quo2.components.browser.browser-input.view :as browser-input] (:require
[test-helpers.component :as h])) [quo2.components.browser.browser-input.view :as browser-input]
[test-helpers.component :as h]))
(h/describe "Browser input" (h/describe "Browser input"
(h/test "Renders empty in default state" (h/test "Renders empty in default state"

View File

@ -1,6 +1,7 @@
(ns quo2.components.browser.browser-input.style (ns quo2.components.browser.browser-input.style
(:require [quo2.components.markdown.text :as text] (:require
[quo2.foundations.colors :as colors])) [quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]))
(def clear-icon-container (def clear-icon-container
{:align-items :center {:align-items :center

View File

@ -1,12 +1,13 @@
(ns quo2.components.browser.browser-input.view (ns quo2.components.browser.browser-input.view
(:require [quo2.components.icon :as icon] (:require
[quo2.components.browser.browser-input.style :as style] [clojure.string :as string]
[react-native.core :as rn] [quo2.components.browser.browser-input.style :as style]
[reagent.core :as reagent] [quo2.components.icon :as icon]
[quo2.foundations.colors :as colors] [quo2.foundations.colors :as colors]
[quo2.theme :as quo2.theme] [quo2.theme :as quo2.theme]
[clojure.string :as string] [react-native.core :as rn]
[react-native.platform :as platform])) [react-native.platform :as platform]
[reagent.core :as reagent]))
(defn remove-http-https-www (defn remove-http-https-www
[value] [value]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.button.component-spec (ns quo2.components.buttons.button.component-spec
(:require [quo2.components.buttons.button.view :as button] (:require
[test-helpers.component :as h])) [quo2.components.buttons.button.view :as button]
[test-helpers.component :as h]))
(h/describe "button tests" (h/describe "button tests"
(h/test "default render of button component" (h/test "default render of button component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.buttons.button.properties (ns quo2.components.buttons.button.properties
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def backgrounds #{:photo :blur}) (def backgrounds #{:photo :blur})

View File

@ -1,13 +1,14 @@
(ns quo2.components.buttons.button.view (ns quo2.components.buttons.button.view
(:require [quo2.components.icon :as quo2.icons] (:require
[quo2.components.markdown.text :as text] [quo2.components.buttons.button.properties :as button-properties]
[quo2.theme :as theme] [quo2.components.buttons.button.style :as style]
[react-native.core :as rn] [quo2.components.icon :as quo2.icons]
[react-native.blur :as blur] [quo2.components.markdown.text :as text]
[reagent.core :as reagent] [quo2.foundations.customization-colors :as customization-colors]
[quo2.components.buttons.button.style :as style] [quo2.theme :as theme]
[quo2.components.buttons.button.properties :as button-properties] [react-native.blur :as blur]
[quo2.foundations.customization-colors :as customization-colors])) [react-native.core :as rn]
[reagent.core :as reagent]))
(defn- button-internal (defn- button-internal
"with label "with label

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.composer-button.component-spec (ns quo2.components.buttons.composer-button.component-spec
(:require [quo2.components.buttons.composer-button.view :as composer-button] (:require
[test-helpers.component :as h])) [quo2.components.buttons.composer-button.view :as composer-button]
[test-helpers.component :as h]))
(h/describe "button tests" (h/describe "button tests"
(h/test "default render of composer button component" (h/test "default render of composer button component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.buttons.composer-button.style (ns quo2.components.buttons.composer-button.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn get-border-color (defn get-border-color
[{:keys [pressed? blur? theme]}] [{:keys [pressed? blur? theme]}]

View File

@ -1,9 +1,10 @@
(ns quo2.components.buttons.composer-button.view (ns quo2.components.buttons.composer-button.view
(:require [quo2.components.icon :as quo2.icons] (:require
[quo2.theme :as theme] [quo2.components.buttons.composer-button.style :as style]
[react-native.core :as rn] [quo2.components.icon :as quo2.icons]
[reagent.core :as reagent] [quo2.theme :as theme]
[quo2.components.buttons.composer-button.style :as style])) [react-native.core :as rn]
[reagent.core :as reagent]))
(defn- view-internal (defn- view-internal
[_ _] [_ _]

View File

@ -1,11 +1,12 @@
(ns quo2.components.buttons.dynamic-button.view (ns quo2.components.buttons.dynamic-button.view
(:require [quo2.components.icon :as icon] (:require
[quo2.components.markdown.text :as text] [quo2.components.buttons.dynamic-button.style :as style]
[quo2.foundations.colors :as colors] [quo2.components.icon :as icon]
[react-native.core :as rn] [quo2.components.markdown.text :as text]
[reagent.core :as reagent] [quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme] [quo2.theme :as quo.theme]
[quo2.components.buttons.dynamic-button.style :as style])) [react-native.core :as rn]
[reagent.core :as reagent]))
(defn- get-button-color (defn- get-button-color
[{:keys [type pressed? customization-color theme]}] [{:keys [type pressed? customization-color theme]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.predictive-keyboard.component-spec (ns quo2.components.buttons.predictive-keyboard.component-spec
(:require [quo2.components.buttons.predictive-keyboard.view :as predictive-keyboard] (:require
[test-helpers.component :as h])) [quo2.components.buttons.predictive-keyboard.view :as predictive-keyboard]
[test-helpers.component :as h]))
(h/describe "predictive-keyboard" (h/describe "predictive-keyboard"
(h/test "basic render" (h/test "basic render"

View File

@ -1,11 +1,12 @@
(ns quo2.components.buttons.predictive-keyboard.view (ns quo2.components.buttons.predictive-keyboard.view
(:require [react-native.core :as rn] (:require
[quo2.components.buttons.predictive-keyboard.style :as style] [quo2.components.buttons.button.view :as button]
[quo2.components.info.info-message :as info-message] [quo2.components.buttons.predictive-keyboard.style :as style]
[quo2.theme :as theme] [quo2.components.info.info-message :as info-message]
[react-native.linear-gradient :as linear-gradient] [quo2.foundations.colors :as colors]
[quo2.foundations.colors :as colors] [quo2.theme :as theme]
[quo2.components.buttons.button.view :as button])) [react-native.core :as rn]
[react-native.linear-gradient :as linear-gradient]))
(def ^:private gradients (def ^:private gradients
{:light [(colors/alpha colors/neutral-40 0.05) (colors/alpha colors/neutral-40 0)] {:light [(colors/alpha colors/neutral-40 0.05) (colors/alpha colors/neutral-40 0)]

View File

@ -1,8 +1,8 @@
(ns quo2.components.buttons.slide-button.animations (ns quo2.components.buttons.slide-button.animations
(:require (:require
[react-native.gesture :as gesture]
[quo2.components.buttons.slide-button.utils :as utils]
[oops.core :as oops] [oops.core :as oops]
[quo2.components.buttons.slide-button.utils :as utils]
[react-native.gesture :as gesture]
[react-native.reanimated :as reanimated])) [react-native.reanimated :as reanimated]))
(def ^:private extrapolation (def ^:private extrapolation

View File

@ -1,10 +1,11 @@
(ns quo2.components.buttons.slide-button.component-spec (ns quo2.components.buttons.slide-button.component-spec
(:require [quo2.components.buttons.slide-button.view :as slide-button] (:require
[quo2.components.buttons.slide-button.constants :as constants] ["@testing-library/react-native" :as rtl]
["@testing-library/react-native" :as rtl] ["react-native-gesture-handler/jest-utils" :as gestures-jest]
["react-native-gesture-handler/jest-utils" :as gestures-jest] [quo2.components.buttons.slide-button.constants :as constants]
[reagent.core :as r] [quo2.components.buttons.slide-button.view :as slide-button]
[test-helpers.component :as h])) [reagent.core :as r]
[test-helpers.component :as h]))
;; NOTE stolen from ;; NOTE stolen from
;; (https://github.com/reagent-project/reagent/blob/a14faba55e373000f8f93edfcfce0d1222f7e71a/test/reagenttest/utils.cljs#LL104C7-L104C10), ;; (https://github.com/reagent-project/reagent/blob/a14faba55e373000f8f93edfcfce0d1222f7e71a/test/reagenttest/utils.cljs#LL104C7-L104C10),

View File

@ -1,18 +1,18 @@
(ns quo2.components.buttons.slide-button.view (ns quo2.components.buttons.slide-button.view
(:require (:require
[quo2.components.icon :as icon] [oops.core :as oops]
[quo2.foundations.colors :as colors] [quo2.components.buttons.slide-button.animations :as animations]
[quo2.components.buttons.slide-button.constants :as constants]
[quo2.components.buttons.slide-button.style :as style] [quo2.components.buttons.slide-button.style :as style]
[quo2.components.buttons.slide-button.utils :as utils] [quo2.components.buttons.slide-button.utils :as utils]
[quo2.components.buttons.slide-button.animations :as animations] [quo2.components.icon :as icon]
[react-native.gesture :as gesture]
[react-native.core :as rn]
[reagent.core :as reagent]
[oops.core :as oops]
[react-native.reanimated :as reanimated]
[quo2.components.markdown.text :as text] [quo2.components.markdown.text :as text]
[quo2.components.buttons.slide-button.constants :as constants] [quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme])) [quo2.theme :as quo.theme]
[react-native.core :as rn]
[react-native.gesture :as gesture]
[react-native.reanimated :as reanimated]
[reagent.core :as reagent]))
(defn- f-slider (defn- f-slider
[{:keys [disabled?]}] [{:keys [disabled?]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.wallet-button.component-spec (ns quo2.components.buttons.wallet-button.component-spec
(:require [quo2.components.buttons.wallet-button.view :as wallet-button] (:require
[test-helpers.component :as h])) [quo2.components.buttons.wallet-button.view :as wallet-button]
[test-helpers.component :as h]))
(h/describe "button tests" (h/describe "button tests"
(h/test "default render of wallet button component" (h/test "default render of wallet button component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.buttons.wallet-button.style (ns quo2.components.buttons.wallet-button.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn get-border-color (defn get-border-color
[{:keys [pressed? theme]}] [{:keys [pressed? theme]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.wallet-ctas.component-spec (ns quo2.components.buttons.wallet-ctas.component-spec
(:require [test-helpers.component :as h] (:require
[quo2.components.buttons.wallet-ctas.view :as wallet-ctas])) [quo2.components.buttons.wallet-ctas.view :as wallet-ctas]
[test-helpers.component :as h]))
(h/describe "Wallet CTAs test" (h/describe "Wallet CTAs test"
(h/test "Buttons render" (h/test "Buttons render"

View File

@ -1,12 +1,12 @@
(ns quo2.components.buttons.wallet-ctas.view (ns quo2.components.buttons.wallet-ctas.view
(:require (:require
[quo2.components.buttons.wallet-button.view :as wallet-button] [quo2.components.buttons.wallet-button.view :as wallet-button]
[quo2.components.buttons.wallet-ctas.style :as style]
[quo2.components.markdown.text :as text] [quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors] [quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme] [quo2.theme :as quo.theme]
[react-native.core :as rn] [react-native.core :as rn]
[utils.i18n :as i18n] [utils.i18n :as i18n]))
[quo2.components.buttons.wallet-ctas.style :as style]))
(defn action-button (defn action-button

View File

@ -1,7 +1,8 @@
(ns quo2.components.calendar.calendar.component-spec (ns quo2.components.calendar.calendar.component-spec
(:require [quo2.components.calendar.calendar.view :as calendar] (:require
[test-helpers.component :as h] [cljs-time.core :as time]
[cljs-time.core :as time])) [quo2.components.calendar.calendar.view :as calendar]
[test-helpers.component :as h]))
(def start-date (time/date-time (time/year (time/now)) (time/month (time/now)) 5)) (def start-date (time/date-time (time/year (time/now)) (time/month (time/now)) 5))
(def end-date (time/date-time (time/plus start-date (time/days 2)))) (def end-date (time/date-time (time/plus start-date (time/days 2))))

View File

@ -1,7 +1,7 @@
(ns quo2.components.calendar.calendar.days-grid.utils (ns quo2.components.calendar.calendar.days-grid.utils
(:require (:require
[utils.number :as utils.number] [cljs-time.core :as time]
[cljs-time.core :as time])) [utils.number :as utils.number]))
(defn- day-of-week (defn- day-of-week
[date] [date]

View File

@ -1,7 +1,8 @@
(ns quo2.components.calendar.calendar.days-grid.utils-test (ns quo2.components.calendar.calendar.days-grid.utils-test
(:require [cljs.test :refer-macros [deftest is testing]] (:require
[quo2.components.calendar.calendar.days-grid.utils :as utils] [cljs-time.core :as time]
[cljs-time.core :as time])) [cljs.test :refer-macros [deftest is testing]]
[quo2.components.calendar.calendar.days-grid.utils :as utils]))
(deftest day-grid-test (deftest day-grid-test
(let [day-grid-result (utils/day-grid "2023" "7")] (let [day-grid-result (utils/day-grid "2023" "7")]

View File

@ -1,9 +1,10 @@
(ns quo2.components.calendar.calendar.days-grid.view (ns quo2.components.calendar.calendar.days-grid.view
(:require [react-native.core :as rn] (:require
[cljs-time.core :as time] [cljs-time.core :as time]
[quo2.components.calendar.calendar.days-grid.utils :as utils] [quo2.components.calendar.calendar-day.view :as calendar-day]
[quo2.components.calendar.calendar-day.view :as calendar-day] [quo2.components.calendar.calendar.days-grid.style :as style]
[quo2.components.calendar.calendar.days-grid.style :as style])) [quo2.components.calendar.calendar.days-grid.utils :as utils]
[react-native.core :as rn]))
(defn- day-view (defn- day-view
[day _ _ {:keys [year month selection-range on-press customization-color]}] [day _ _ {:keys [year month selection-range on-press customization-color]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar.month-picker.component-spec (ns quo2.components.calendar.calendar.month-picker.component-spec
(:require [quo2.components.calendar.calendar.month-picker.view :as month-picker] (:require
[test-helpers.component :as h])) [quo2.components.calendar.calendar.month-picker.view :as month-picker]
[test-helpers.component :as h]))
(h/describe "month-picker component" (h/describe "month-picker component"
(h/test "default render of month-picker component" (h/test "default render of month-picker component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.month-picker.style (ns quo2.components.calendar.calendar.month-picker.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def container (def container
{:align-items :center {:align-items :center

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.month-picker.utils (ns quo2.components.calendar.calendar.month-picker.utils
(:require [utils.datetime :as datetime])) (:require
[utils.datetime :as datetime]))
(defn format-month-year (defn format-month-year
[year month] [year month]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar.month-picker.utils-test (ns quo2.components.calendar.calendar.month-picker.utils-test
(:require [cljs.test :refer-macros [deftest is testing]] (:require
[quo2.components.calendar.calendar.month-picker.utils :as utils])) [cljs.test :refer-macros [deftest is testing]]
[quo2.components.calendar.calendar.month-picker.utils :as utils]))
(deftest format-month-year-test (deftest format-month-year-test
(testing "returns correct format for given year and month" (testing "returns correct format for given year and month"

View File

@ -1,11 +1,12 @@
(ns quo2.components.calendar.calendar.month-picker.view (ns quo2.components.calendar.calendar.month-picker.view
(:require [react-native.core :as rn] (:require
[utils.number :as utils.number] [quo2.components.buttons.button.view :as button]
[quo2.theme :as theme] [quo2.components.calendar.calendar.month-picker.style :as style]
[quo2.components.buttons.button.view :as button] [quo2.components.calendar.calendar.month-picker.utils :as utils]
[quo2.components.markdown.text :as text] [quo2.components.markdown.text :as text]
[quo2.components.calendar.calendar.month-picker.style :as style] [quo2.theme :as theme]
[quo2.components.calendar.calendar.month-picker.utils :as utils])) [react-native.core :as rn]
[utils.number :as utils.number]))
(defn- view-internal (defn- view-internal
[{:keys [year month on-change theme]}] [{:keys [year month on-change theme]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.style (ns quo2.components.calendar.calendar.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn container (defn container
[theme] [theme]

View File

@ -1,7 +1,8 @@
(ns quo2.components.calendar.calendar.utils (ns quo2.components.calendar.calendar.utils
(:require [utils.datetime :as datetime] (:require
[utils.number :as utils.number] [clojure.string :as string]
[clojure.string :as string])) [utils.datetime :as datetime]
[utils.number :as utils.number]))
(defn generate-years (defn generate-years
[current-year] [current-year]

View File

@ -1,9 +1,10 @@
(ns quo2.components.calendar.calendar.utils-test (ns quo2.components.calendar.calendar.utils-test
(:require [cljs.test :refer-macros [deftest is testing]] (:require
[quo2.components.calendar.calendar.utils :as utils] [cljs.test :refer-macros [deftest is testing]]
[utils.datetime :as datetime] [clojure.string :as string]
[clojure.string :as string] [quo2.components.calendar.calendar.utils :as utils]
[utils.number :as utils.number])) [utils.datetime :as datetime]
[utils.number :as utils.number]))
(deftest generate-years-test (deftest generate-years-test
(testing "returns correct years range" (testing "returns correct years range"

View File

@ -1,14 +1,15 @@
(ns quo2.components.calendar.calendar.view (ns quo2.components.calendar.calendar.view
(:require [react-native.core :as rn] (:require
[quo2.theme :as theme] [quo2.components.calendar.calendar.days-grid.view :as days-grid]
[reagent.core :as reagent] [quo2.components.calendar.calendar.month-picker.view :as month-picker]
[utils.number :as utils.number] [quo2.components.calendar.calendar.style :as style]
[quo2.components.calendar.calendar.utils :as utils] [quo2.components.calendar.calendar.utils :as utils]
[quo2.components.calendar.calendar.style :as style] [quo2.components.calendar.calendar.weekdays-header.view :as weekdays-header]
[quo2.components.calendar.calendar.years-list.view :as years-list] [quo2.components.calendar.calendar.years-list.view :as years-list]
[quo2.components.calendar.calendar.days-grid.view :as days-grid] [quo2.theme :as theme]
[quo2.components.calendar.calendar.weekdays-header.view :as weekdays-header] [react-native.core :as rn]
[quo2.components.calendar.calendar.month-picker.view :as month-picker])) [reagent.core :as reagent]
[utils.number :as utils.number]))
(defn- view-internal (defn- view-internal
[] []

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.weekdays-header.style (ns quo2.components.calendar.calendar.weekdays-header.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def container-weekday-row (def container-weekday-row
{:flex-direction :row {:flex-direction :row

View File

@ -1,10 +1,11 @@
(ns quo2.components.calendar.calendar.weekdays-header.view (ns quo2.components.calendar.calendar.weekdays-header.view
(:require [react-native.core :as rn] (:require
[quo2.theme :as theme] [quo2.components.calendar.calendar.weekdays-header.style :as style]
[utils.datetime :as datetime] [quo2.components.markdown.text :as text]
[utils.i18n :as i18n] [quo2.theme :as theme]
[quo2.components.markdown.text :as text] [react-native.core :as rn]
[quo2.components.calendar.calendar.weekdays-header.style :as style])) [utils.datetime :as datetime]
[utils.i18n :as i18n]))
(defn- view-internal (defn- view-internal
[theme] [theme]

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.years-list.style (ns quo2.components.calendar.calendar.years-list.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn gradient-start-color (defn gradient-start-color
[theme] [theme]

View File

@ -1,10 +1,11 @@
(ns quo2.components.calendar.calendar.years-list.view (ns quo2.components.calendar.calendar.years-list.view
(:require [react-native.core :as rn] (:require
[quo2.theme :as theme] [quo2.components.calendar.calendar-year.view :as calendar-year]
[react-native.linear-gradient :as linear-gradient] [quo2.components.calendar.calendar.utils :as utils]
[quo2.components.calendar.calendar.utils :as utils] [quo2.components.calendar.calendar.years-list.style :as style]
[quo2.components.calendar.calendar-year.view :as calendar-year] [quo2.theme :as theme]
[quo2.components.calendar.calendar.years-list.style :as style])) [react-native.core :as rn]
[react-native.linear-gradient :as linear-gradient]))
(defn- year-view (defn- year-view
[year _ _ {:keys [selected-year on-press]}] [year _ _ {:keys [selected-year on-press]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar-day.component-spec (ns quo2.components.calendar.calendar-day.component-spec
(:require [quo2.components.calendar.calendar-day.view :as calendar-day] (:require
[test-helpers.component :as h])) [quo2.components.calendar.calendar-day.view :as calendar-day]
[test-helpers.component :as h]))
(h/describe "calendar-day component" (h/describe "calendar-day component"
(h/test "default render of calendar-day component" (h/test "default render of calendar-day component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar-day.style (ns quo2.components.calendar.calendar-day.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def wrapper (def wrapper
{:flex 1 {:flex 1

View File

@ -1,8 +1,9 @@
(ns quo2.components.calendar.calendar-day.view (ns quo2.components.calendar.calendar-day.view
(:require [react-native.core :as rn] (:require
[quo2.theme :as theme] [quo2.components.calendar.calendar-day.style :as style]
[quo2.components.markdown.text :as text] [quo2.components.markdown.text :as text]
[quo2.components.calendar.calendar-day.style :as style])) [quo2.theme :as theme]
[react-native.core :as rn]))
(defn- view-internal (defn- view-internal
[{:keys [state in-range on-press customization-color theme] [{:keys [state in-range on-press customization-color theme]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar-year.component-spec (ns quo2.components.calendar.calendar-year.component-spec
(:require [quo2.components.calendar.calendar-year.view :as calendar-year] (:require
[test-helpers.component :as h])) [quo2.components.calendar.calendar-year.view :as calendar-year]
[test-helpers.component :as h]))
(h/describe "calendar-year component" (h/describe "calendar-year component"
(h/test "default render of calendar-year component" (h/test "default render of calendar-year component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar-year.style (ns quo2.components.calendar.calendar-year.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def container-base (def container-base
{:align-items :center {:align-items :center

View File

@ -1,8 +1,9 @@
(ns quo2.components.calendar.calendar-year.view (ns quo2.components.calendar.calendar-year.view
(:require [react-native.core :as rn] (:require
[quo2.theme :as theme] [quo2.components.calendar.calendar-year.style :as style]
[quo2.components.markdown.text :as text] [quo2.components.markdown.text :as text]
[quo2.components.calendar.calendar-year.style :as style])) [quo2.theme :as theme]
[react-native.core :as rn]))
(defn- view-internal (defn- view-internal
[{:keys [selected? disabled? on-press theme]} year] [{:keys [selected? disabled? on-press theme]} year]

View File

@ -1,5 +1,6 @@
(ns quo2.components.code.common.style (ns quo2.components.code.common.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
;; Example themes: ;; Example themes:
;; https://github.com/react-syntax-highlighter/react-syntax-highlighter/tree/master/src/styles/hljs ;; https://github.com/react-syntax-highlighter/react-syntax-highlighter/tree/master/src/styles/hljs

View File

@ -1,13 +1,14 @@
(ns quo2.components.code.common.view (ns quo2.components.code.common.view
(:require [cljs-bean.core :as bean] (:require
[clojure.string :as string] [cljs-bean.core :as bean]
[quo2.components.buttons.button.view :as button] [clojure.string :as string]
[quo2.components.code.common.style :as style] [quo2.components.buttons.button.view :as button]
[quo2.components.markdown.text :as text] [quo2.components.code.common.style :as style]
[react-native.core :as rn] [quo2.components.markdown.text :as text]
[react-native.linear-gradient :as linear-gradient] [react-native.core :as rn]
[react-native.syntax-highlighter :as highlighter] [react-native.linear-gradient :as linear-gradient]
[reagent.core :as reagent])) [react-native.syntax-highlighter :as highlighter]
[reagent.core :as reagent]))
(defn- render-nodes (defn- render-nodes
[nodes theme preview?] [nodes theme preview?]

View File

@ -1,6 +1,7 @@
(ns quo2.components.code.snippet.view (ns quo2.components.code.snippet.view
(:require [quo2.theme :as theme] (:require
[quo2.components.code.common.view :as code-common])) [quo2.components.code.common.view :as code-common]
[quo2.theme :as theme]))
(defn- view-internal (defn- view-internal
[_] [_]

View File

@ -1,5 +1,6 @@
(ns quo2.components.code.snippet-preview.view (ns quo2.components.code.snippet-preview.view
(:require [quo2.components.code.common.view :as code-common])) (:require
[quo2.components.code.common.view :as code-common]))
(defn view (defn view
[{:keys [language]} children] [{:keys [language]} children]

View File

@ -1,5 +1,6 @@
(ns quo2.components.colors.color.style (ns quo2.components.colors.color.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def color-button-common (def color-button-common
{:width 48 {:width 48

View File

@ -1,10 +1,10 @@
(ns quo2.components.colors.color.view (ns quo2.components.colors.color.view
(:require (:require
[quo2.components.colors.color.style :as style]
[quo2.components.icon :as icon] [quo2.components.icon :as icon]
[quo2.foundations.colors :as colors] [quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme] [quo2.theme :as quo.theme]
[react-native.core :as rn] [react-native.core :as rn]))
[quo2.components.colors.color.style :as style]))
(defn- feng-shui (defn- feng-shui
[{:keys [color theme]}] [{:keys [color theme]}]

View File

@ -1,7 +1,8 @@
(ns quo2.components.colors.color-picker.component-spec (ns quo2.components.colors.color-picker.component-spec
(:require [quo2.components.colors.color-picker.view :as color-picker] (:require
[reagent.core :as reagent] [quo2.components.colors.color-picker.view :as color-picker]
[test-helpers.component :as h])) [reagent.core :as reagent]
[test-helpers.component :as h]))
(h/describe "color-picker" (h/describe "color-picker"
(h/test "color picker rendered" (h/test "color picker rendered"

View File

@ -1,7 +1,8 @@
(ns quo2.components.colors.color-picker.view (ns quo2.components.colors.color-picker.view
(:require [react-native.core :as rn] (:require
[reagent.core :as reagent] [quo2.components.colors.color.view :as color]
[quo2.components.colors.color.view :as color])) [react-native.core :as rn]
[reagent.core :as reagent]))
(def color-list (def color-list
[:blue :yellow :purple :turquoise :magenta :sky :orange :army :flamingo :camel :copper]) [:blue :yellow :purple :turquoise :magenta :sky :orange :army :flamingo :camel :copper])

View File

@ -1,5 +1,6 @@
(ns quo2.components.common.not-implemented.style (ns quo2.components.common.not-implemented.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn text (defn text
[blur? theme] [blur? theme]

View File

@ -1,7 +1,8 @@
(ns quo2.components.common.not-implemented.view (ns quo2.components.common.not-implemented.view
(:require [react-native.core :as rn] (:require
[quo2.theme :as quo.theme] [quo2.components.common.not-implemented.style :as style]
[quo2.components.common.not-implemented.style :as style])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal (defn- view-internal
[{:keys [blur? theme]}] [{:keys [blur? theme]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.common.notification-dot.style (ns quo2.components.common.notification-dot.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def ^:const size 8) (def ^:const size 8)

View File

@ -1,7 +1,8 @@
(ns quo2.components.common.notification-dot.view (ns quo2.components.common.notification-dot.view
(:require [react-native.core :as rn] (:require
[quo2.components.common.notification-dot.style :as style] [quo2.components.common.notification-dot.style :as style]
[quo2.theme :as quo.theme])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn view-internal (defn view-internal
[{:keys [customization-color style theme blur?]}] [{:keys [customization-color style theme blur?]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.common.separator.view (ns quo2.components.common.separator.view
(:require [quo2.foundations.colors :as quo2.colors] (:require
[react-native.core :as rn])) [quo2.foundations.colors :as quo2.colors]
[react-native.core :as rn]))
(defn separator (defn separator
[{:keys [style]}] [{:keys [style]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.common.unread-grey-dot.style (ns quo2.components.common.unread-grey-dot.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(def unread-grey-dot (def unread-grey-dot
{:width 8 {:width 8

View File

@ -1,6 +1,7 @@
(ns quo2.components.common.unread-grey-dot.view (ns quo2.components.common.unread-grey-dot.view
(:require [react-native.core :as rn] (:require
[quo2.components.common.unread-grey-dot.style :as style])) [quo2.components.common.unread-grey-dot.style :as style]
[react-native.core :as rn]))
(defn unread-grey-dot (defn unread-grey-dot
[accessibility-label] [accessibility-label]

View File

@ -1,6 +1,7 @@
(ns quo2.components.community.banner.style (ns quo2.components.community.banner.style
(:require [quo2.foundations.colors :as colors] (:require
[quo2.foundations.shadows :as shadows])) [quo2.foundations.colors :as colors]
[quo2.foundations.shadows :as shadows]))
(defn community-card (defn community-card
[theme] [theme]

View File

@ -1,9 +1,10 @@
(ns quo2.components.community.banner.view (ns quo2.components.community.banner.view
(:require [quo2.components.community.banner.style :as style] (:require
[quo2.components.markdown.text :as text] [quo2.components.community.banner.style :as style]
[quo2.foundations.colors :as colors] [quo2.components.markdown.text :as text]
[quo2.theme :as theme] [quo2.foundations.colors :as colors]
[react-native.core :as rn])) [quo2.theme :as theme]
[react-native.core :as rn]))
(defn- card-title-and-description (defn- card-title-and-description
[title description theme] [title description theme]

View File

@ -1,9 +1,10 @@
(ns quo2.components.community.channel-actions (ns quo2.components.community.channel-actions
(:require [react-native.core :as rn] (:require
[quo2.components.icon :as icons] [quo2.components.community.style :as style]
[quo2.components.counter.counter.view :as counter] [quo2.components.counter.counter.view :as counter]
[quo2.components.markdown.text :as text] [quo2.components.icon :as icons]
[quo2.components.community.style :as style])) [quo2.components.markdown.text :as text]
[react-native.core :as rn]))
(defn channel-action (defn channel-action
[{:keys [big? color label counter-value icon on-press accessibility-label]}] [{:keys [big? color label counter-value icon on-press accessibility-label]}]

View File

@ -1,9 +1,10 @@
(ns quo2.components.community.community-card-view (ns quo2.components.community.community-card-view
(:require [quo2.components.community.community-view :as community-view] (:require
[quo2.components.community.icon :as icon] [quo2.components.community.community-view :as community-view]
[quo2.components.community.style :as style] [quo2.components.community.icon :as icon]
[quo2.theme :as quo.theme] [quo2.components.community.style :as style]
[react-native.core :as rn])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- loading-card-view (defn- loading-card-view
[{:keys [width theme]}] [{:keys [width theme]}]

View File

@ -1,14 +1,15 @@
(ns quo2.components.community.community-list-view (ns quo2.components.community.community-list-view
(:require [quo2.components.community.community-view :as community-view] (:require
[quo2.components.community.style :as style] [quo2.components.common.unread-grey-dot.view :refer [unread-grey-dot]]
[quo2.components.counter.counter.view :as counter] [quo2.components.community.community-view :as community-view]
[quo2.components.icon :as icons] [quo2.components.community.icon :as community-icon]
[quo2.theme :as quo.theme] [quo2.components.community.style :as style]
[quo2.components.markdown.text :as text] [quo2.components.counter.counter.view :as counter]
[quo2.foundations.colors :as colors] [quo2.components.icon :as icons]
[quo2.components.community.icon :as community-icon] [quo2.components.markdown.text :as text]
[quo2.components.common.unread-grey-dot.view :refer [unread-grey-dot]] [quo2.foundations.colors :as colors]
[react-native.core :as rn])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn notification-view (defn notification-view
[{:keys [theme [{:keys [theme

View File

@ -1,14 +1,15 @@
(ns quo2.components.community.community-view (ns quo2.components.community.community-view
(:require [quo2.components.community.style :as style] (:require
[quo2.components.icon :as icons] [quo2.components.community.style :as style]
[quo2.components.markdown.text :as text] [quo2.components.icon :as icons]
[quo2.components.tags.permission-tag :as permission] [quo2.components.markdown.text :as text]
[quo2.components.tags.tag :as tag] [quo2.components.tags.permission-tag :as permission]
[quo2.foundations.colors :as colors] [quo2.components.tags.tag :as tag]
[quo2.theme :as theme] [quo2.foundations.colors :as colors]
[react-native.core :as rn] [quo2.theme :as theme]
[react-native.gesture :as gesture] [react-native.core :as rn]
utils.money)) [react-native.gesture :as gesture]
utils.money))
(defn community-stats (defn community-stats
[{:keys [icon members-count icon-color accessibility-label]}] [{:keys [icon members-count icon-color accessibility-label]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.community.icon (ns quo2.components.community.icon
(:require [react-native.core :as rn])) (:require
[react-native.core :as rn]))
(defn community-icon (defn community-icon
[{:keys [images]} size] [{:keys [images]} size]

View File

@ -1,6 +1,7 @@
(ns quo2.components.community.style (ns quo2.components.community.style
(:require [quo2.foundations.colors :as colors] (:require
[quo2.foundations.shadows :as shadows])) [quo2.foundations.colors :as colors]
[quo2.foundations.shadows :as shadows]))
(defn community-card (defn community-card
[radius theme] [radius theme]

View File

@ -1,11 +1,12 @@
(ns quo2.components.community.token-gating (ns quo2.components.community.token-gating
(:require [quo2.components.markdown.text :as text] (:require
[quo2.components.tags.token-tag :as token-tag] [clojure.string :as string]
[react-native.core :as rn] [quo2.components.community.style :as style]
[utils.i18n :as i18n] [quo2.components.markdown.text :as text]
[clojure.string :as string] [quo2.components.tags.token-tag :as token-tag]
[quo2.theme :as quo.theme] [quo2.theme :as quo.theme]
[quo2.components.community.style :as style])) [react-native.core :as rn]
[utils.i18n :as i18n]))
(defn token-requirement-list-row (defn token-requirement-list-row
[tokens padding?] [tokens padding?]

View File

@ -1,6 +1,7 @@
(ns quo2.components.counter.counter.component-spec (ns quo2.components.counter.counter.component-spec
(:require [quo2.components.counter.counter.view :as counter] (:require
[test-helpers.component :as h])) [quo2.components.counter.counter.view :as counter]
[test-helpers.component :as h]))
(h/describe "counter component" (h/describe "counter component"
(h/test "default render of counter component" (h/test "default render of counter component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.counter.counter.style (ns quo2.components.counter.counter.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn get-color (defn get-color
[type customization-color theme] [type customization-color theme]

View File

@ -1,11 +1,11 @@
(ns quo2.components.counter.counter.view (ns quo2.components.counter.counter.view
(:require (:require
[quo2.components.counter.counter.style :as style]
[quo2.components.markdown.text :as text] [quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors] [quo2.foundations.colors :as colors]
[react-native.core :as rn]
[utils.number]
[quo2.theme :as quo.theme] [quo2.theme :as quo.theme]
[quo2.components.counter.counter.style :as style])) [react-native.core :as rn]
[utils.number]))
(defn- view-internal (defn- view-internal
[{:keys [type customization-color theme container-style accessibility-label max-value] [{:keys [type customization-color theme container-style accessibility-label max-value]

View File

@ -1,6 +1,7 @@
(ns quo2.components.counter.step.component-spec (ns quo2.components.counter.step.component-spec
(:require [quo2.components.counter.step.view :as step] (:require
[test-helpers.component :as h])) [quo2.components.counter.step.view :as step]
[test-helpers.component :as h]))
(h/describe "step component" (h/describe "step component"
(h/test "default render of step component" (h/test "default render of step component"

View File

@ -1,8 +1,9 @@
(ns quo2.components.dividers.date (ns quo2.components.dividers.date
(:require [quo2.components.markdown.text :as text] (:require
[quo2.components.common.separator.view :as separator] [quo2.components.common.separator.view :as separator]
[quo2.foundations.colors :as colors] [quo2.components.markdown.text :as text]
[react-native.core :as rn])) [quo2.foundations.colors :as colors]
[react-native.core :as rn]))
(defn date (defn date
[value] [value]

View File

@ -1,6 +1,7 @@
(ns quo2.components.dividers.divider-label.component-spec (ns quo2.components.dividers.divider-label.component-spec
(:require [quo2.components.dividers.divider-label.view :as divider-label] (:require
[test-helpers.component :as h])) [quo2.components.dividers.divider-label.view :as divider-label]
[test-helpers.component :as h]))
(h/describe "Divider Label" (h/describe "Divider Label"
(h/test "default render" (h/test "default render"

View File

@ -1,5 +1,6 @@
(ns quo2.components.dividers.divider-label.style (ns quo2.components.dividers.divider-label.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn get-height (defn get-height
[tight?] [tight?]

View File

@ -1,10 +1,11 @@
(ns quo2.components.dividers.divider-label.view (ns quo2.components.dividers.divider-label.view
(:require [quo2.components.markdown.text :as text] (:require
[quo2.components.dividers.divider-label.style :as style] [quo2.components.counter.counter.view :as counter]
[quo2.theme :as quo.theme] [quo2.components.dividers.divider-label.style :as style]
[react-native.core :as rn] [quo2.components.icon :as icons]
[quo2.components.counter.counter.view :as counter] [quo2.components.markdown.text :as text]
[quo2.components.icon :as icons])) [quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal (defn- view-internal
"Options: "Options:

View File

@ -1,5 +1,6 @@
(ns quo2.components.dividers.divider-line.style (ns quo2.components.dividers.divider-line.style
(:require [quo2.foundations.colors :as colors])) (:require
[quo2.foundations.colors :as colors]))
(defn divider-line (defn divider-line
[{:keys [blur? container-style theme]}] [{:keys [blur? container-style theme]}]

View File

@ -1,8 +1,8 @@
(ns quo2.components.dividers.divider-line.view (ns quo2.components.dividers.divider-line.view
(:require (:require
[quo2.components.dividers.divider-line.style :as style]
[quo2.theme :as quo.theme] [quo2.theme :as quo.theme]
[react-native.core :as rn] [react-native.core :as rn]))
[quo2.components.dividers.divider-line.style :as style]))
(defn- view-internal (defn- view-internal
[props] [props]

Some files were not shown because too many files have changed in this diff Show More