Skip to content

Commit

Permalink
Merge branch 'develop' into jc/sizes-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac authored Sep 25, 2023
2 parents 0cd2079 + 6fd5a97 commit 5daebfe
Show file tree
Hide file tree
Showing 57 changed files with 263 additions and 458 deletions.
8 changes: 0 additions & 8 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -772,15 +772,7 @@ SPEC CHECKSUMS:
RNLanguages: 962e562af0d34ab1958d89bcfdb64fafc37c513e
RNPermissions: ad71dd4f767ec254f2cd57592fbee02afee75467
RNReactNativeHapticFeedback: 2566b468cc8d0e7bb2f84b23adc0f4614594d071
<<<<<<< HEAD
<<<<<<< HEAD
RNReanimated: 43adb0307a62c1ce9694f36f124ca3b51a15272a
=======
RNReanimated: 06a228c5a245ef7b5b03f0efc29d76ce4db9031c
>>>>>>> c50db2fd2 (lint)
=======
RNReanimated: d0db0ee059c33381bca787a2193c27e52750ccaf
>>>>>>> a52fda25e (lint)
RNShare: d82e10f6b7677f4b0048c23709bd04098d5aee6c
RNStaticSafeAreaInsets: 055ddbf5e476321720457cdaeec0ff2ba40ec1b8
RNSVG: 80584470ff1ffc7994923ea135a3e5ad825546b9
Expand Down
6 changes: 3 additions & 3 deletions src/quo2/components/list_items/token_value/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
[reagent.core :as reagent]))

(defn- internal-view
[{:keys [theme customization-color status token metrics? values on-press]}]
[]
(let [state (reagent/atom :default)]
(fn []
(fn [{:keys [theme customization-color status token metrics? values on-press]}]
(let [bg-opacity (case @state
:active 10
:pressed 5
Expand Down Expand Up @@ -42,7 +42,7 @@
[text/text
{:size :paragraph-2
:style {:color (colors/theme-colors colors/neutral-50 colors/neutral-40 theme)}}
(str crypto-value " " (string/upper-case (clj->js token)))]]]
(str crypto-value " " (if token (string/upper-case (clj->js token)) ""))]]]
[rn/view
{:style {:align-items :flex-end
:justify-content :space-between}}
Expand Down
2 changes: 1 addition & 1 deletion src/quo2/components/navigation/bottom_nav_tab/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@
counter-label]
[rn/view {:style (styles/notification-dot customization-color)}]))]]))

(defn bottom-nav-tab
(defn view
[opts]
[:f> f-bottom-nav-tab opts])
35 changes: 18 additions & 17 deletions src/quo2/components/settings/settings_item/style.cljs
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
(ns quo2.components.settings.settings-item.style
(:require [quo2.foundations.colors :as colors]))

(defn find-icon-height
[description tag image]
(let [icon-height (if (= image :icon-avatar) 32 20)
icon-height (if description 40 icon-height)]
(if tag 72 icon-height)))

(defn container
[{:keys [in-card? tag container-style]}]
(merge {:padding-horizontal 12
:padding-top (if in-card? 12 13)
:padding-bottom (if in-card? 12 13)
:flex-direction :row
:justify-content :space-between
:height (if tag 96 48)}
[{:keys [container-style]}]
(merge {:padding 12
:flex-direction :row
:justify-content :space-between}
container-style))

(defn left-sub-container
[{:keys [tag description]}]
{:flex-direction :row
:align-items (if (or tag description) :flex-start :center)})

(def sub-container
{:flex-direction :row
:align-items :center})

(def left-container
{:margin-left 12
:height "100%"
:justify-content :center})
:justify-content :flex-start})

(defn image-container
[description tag image]
{:height (find-icon-height description tag image)
:justify-content :flex-start})
[image tag description]
{:height (if (= image :icon-avatar) 32 20)
:margin-top (if (or tag description) 1 0)})

(def status-container
{:flex-direction :row
Expand Down Expand Up @@ -57,3 +53,8 @@
:height 15
:border-radius 12
:background-color background-color})

(def status-tag-container
{:margin-top 7
:margin-bottom 2
:margin-left -1})
4 changes: 2 additions & 2 deletions src/quo2/components/settings/settings_item/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
:label (:label tag-props)
:no-icon? true
:size :small
:container-style {:margin-top 8}}]
:container-style style/status-tag-container}]
:context [context-tag/view
(merge tag-props
{:type :icon
Expand Down Expand Up @@ -105,7 +105,7 @@
{:style (style/container props)
:on-press on-press
:accessibility-label accessibility-label}
[rn/view {:style style/sub-container}
[rn/view {:style (style/left-sub-container props)}
[image-component props]
[rn/view {:style style/left-container}
[text/text {:weight :medium} title]
Expand Down
2 changes: 2 additions & 0 deletions src/quo2/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
quo2.components.messages.gap
quo2.components.messages.system-message
quo2.components.navigation.floating-shell-button.view
quo2.components.navigation.bottom-nav-tab.view
quo2.components.navigation.page-nav.view
quo2.components.navigation.top-nav.view
quo2.components.notifications.activity-log.view
Expand Down Expand Up @@ -262,6 +263,7 @@
(def skeleton-list quo2.components.loaders.skeleton-list.view/view)

;;;; Navigation
(def bottom-nav-tab quo2.components.navigation.bottom-nav-tab.view/view)
(def floating-shell-button quo2.components.navigation.floating-shell-button.view/view)
(def page-nav quo2.components.navigation.page-nav.view/page-nav)
(def top-nav quo2.components.navigation.top-nav.view/view)
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/browser/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[utils.url :as url]
[react-native.platform :as platform]
[status-im.utils.random :as random]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im.utils.universal-links.utils :as links]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/browser/permissions_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[status-im.browser.core :as browser]
[status-im.browser.core-test :as core.tests]
[status-im.browser.permissions :as permissions]
[status-im.utils.types :as types]))
[status-im.utils.deprecated-types :as types]))

(deftest permissions-test
(let [dapp-name "test.com"
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/chat/models/message.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[status-im.data-store.messages :as data-store.messages]
[status-im.transport.message.protocol :as protocol]
[react-native.platform :as platform]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im2.contexts.chat.messages.delete-message.events :as delete-message]
[status-im2.contexts.chat.messages.list.events :as message-list]
[status-im2.contexts.chat.messages.list.state :as view.state]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/communities/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[quo.design-system.colors :as colors]
[quo2.foundations.colors :as quo2.colors]
[re-frame.core :as re-frame]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im.async-storage.core :as async-storage]
[status-im.ui.components.emoji-thumbnail.styles :as emoji-thumbnail-styles]
[status-im.utils.universal-links.core :as universal-links]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/contact/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[status-im.data-store.chats :as chats-store]
[status-im2.contexts.contacts.events :as contacts-store]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im2.contexts.shell.activity-center.events :as activity-center]
[status-im2.navigation.events :as navigation]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/data_store/chats.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[status-im2.constants :as constants]
[status-im.data-store.messages :as messages]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]))

(defn rpc->type
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/keycard/common.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[utils.datetime :as datetime]
[status-im.utils.keychain.core :as keychain]
[react-native.platform :as platform]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/keycard/fx.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[re-frame.core :as re-frame]
[status-im.keycard.card :as card]
[native-module.core :as native-module]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]))

(re-frame/reg-fx
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/keycard/login.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[status-im.keycard.recovery :as recovery]
[status-im.signing.core :as signing.core]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/keycard/real_keycard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[status-im.keycard.keycard :as keycard]
[native-module.core :as native-module]
[react-native.platform :as platform]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]))

(defonce event-emitter
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/keycard/recovery.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[utils.datetime :as datetime]
[status-im.utils.keychain.core :as keychain]
[react-native.platform :as platform]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.security.core :as security]))
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/keycard/sign.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[status-im.keycard.common :as common]
[utils.re-frame :as rf]
[utils.money :as money]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]))

(rf/defn sign
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/keycard/simulated_keycard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[status-im.multiaccounts.create.core :as multiaccounts.create]
[native-module.core :as native-module]
[status-im.node.core :as node]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im.utils.utils :as utils]
[taoensso.timbre :as log]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/multiaccounts/create/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[status-im2.config :as config]
[utils.re-frame :as rf]
[status-im.utils.signing-phrase.core :as signing-phrase]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[utils.security.core :as security]))

(defn normalize-derived-data-keys
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/multiaccounts/login/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[status-im.ui.components.react :as react]
[utils.re-frame :as rf]
[react-native.platform :as platform]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[utils.security.core :as security]))

(re-frame/reg-fx
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/multiaccounts/recover/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[status-im2.constants :as constants]
[status-im.multiaccounts.create.core :as multiaccounts.create]
[native-module.core :as native-module]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]))

(re-frame/reg-fx
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/multiaccounts/reset_password/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[native-module.core :as native-module]
[status-im.popover.core :as popover]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[utils.security.core :as security]))

(rf/defn on-input-change
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/multiaccounts/update/core.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns status-im.multiaccounts.update.core
(:require [status-im.ethereum.ens :as ens]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im2.constants :as constants]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/node/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[native-module.core :as native-module]
[status-im2.config :as config]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[clojure.string :as string]
[react-native.platform :as platform]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/notifications/local.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[status-im.notifications.android :as pn-android]
[utils.re-frame :as rf]
[utils.money :as money]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im.utils.utils :as utils]
[react-native.core :as rn]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/router/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[status-im.ethereum.core :as ethereum]
[status-im.ethereum.eip681 :as eip681]
[status-im.ethereum.ens :as ens]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[status-im.ethereum.stateofus :as stateofus]
[utils.validators :as validators]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/signing/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[utils.re-frame :as rf]
[status-im.utils.hex :as utils.hex]
[utils.money :as money]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im.utils.utils :as utils]
[status-im.wallet.core :as wallet]
[status-im.wallet.prices :as prices]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/signing/keycard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[utils.i18n :as i18n]
[native-module.core :as native-module]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]))

(re-frame/reg-fx
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/transport/message/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[status-im.multiaccounts.update.core :as update.core]
[status-im.pairing.core :as models.pairing]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im.visibility-status-updates.core :as models.visibility-status-updates]
[status-im2.contexts.shell.activity-center.events :as activity-center]
[status-im2.contexts.chat.messages.pin.events :as messages.pin]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[utils.i18n :as i18n]
[native-module.core :as native-module]
[utils.re-frame :as rf]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]
[utils.security.core :as security]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/signing/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
[status-im.ui.screens.signing.styles :as styles]
[status-im.ui.screens.wallet.components.views :as wallet.components]
[react-native.platform :as platform]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im.utils.utils :as utils]
[status-im.wallet.utils :as wallet.utils]
[utils.security.core :as security]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns status-im.utils.types
(ns status-im.utils.deprecated-types
{:deprecated true :superseded-by "utils.transforms"}
(:refer-clojure :exclude [js->clj])
(:require [cljs-bean.core :as clj-bean]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/utils/logging/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[utils.re-frame :as rf]
[utils.datetime :as datetime]
[react-native.platform :as platform]
[status-im.utils.types :as types]
[status-im.utils.deprecated-types :as types]
[status-im2.common.log :as log]
[status-im2.config :as config]))

Expand Down
2 changes: 1 addition & 1 deletion src/status_im/utils/test.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns status-im.utils.test
(:require [re-frame.core :as re-frame]
[status-im.utils.types :as types]))
[status-im.utils.deprecated-types :as types]))

(def native-status (js/require "../../modules/react-native-status/nodejs/bindings"))

Expand Down
Loading

0 comments on commit 5daebfe

Please sign in to comment.