Skip to content

Commit ca2b3ab

Browse files
authored
old wallet fixes (#17697)
1 parent b910f05 commit ca2b3ab

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed

src/status_im/ui/components/button/view.cljs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,17 @@
6767
:else theme)
6868
{:keys [icon-color background-color text-color border-color]}
6969
(themes theme')]
70-
(println "theme" theme' background-color)
70+
7171
[rn/touchable-without-feedback
72-
(merge (when on-press
72+
(merge {:disabled disabled
73+
:accessibility-label accessibility-label}
74+
(when on-press
7375
{:on-press on-press})
7476
(when on-long-press
7577
{:on-long-press on-long-press}))
7678
[rn/view
77-
(merge {:background-color background-color
78-
:border-radius border-radius
79-
:type type
80-
:disabled disabled
81-
:accessibility-label accessibility-label}
79+
(merge {:background-color background-color
80+
:border-radius border-radius}
8281
(when border-color
8382
{:border-color border-color
8483
:border-width 1}))

src/status_im/ui/components/text.cljs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(ns status-im.ui.components.text
22
(:require
33
[react-native.core :as rn]
4-
[react-native.reanimated :as animated]
54
[reagent.core :as reagent]
65
[status-im.ui.components.colors :as colors]
76
[status-im.ui.components.typography :as typography]))
@@ -44,7 +43,7 @@
4443
[]
4544
(let [this (reagent/current-component)
4645
props (reagent/props this)
47-
component (if (:animated? props) animated/text rn/text)]
46+
component rn/text]
4847
(into [component
4948
(merge {:style (text-style props)}
5049
(dissoc props

src/status_im/ui/screens/screens.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
:component wallet.account/account}
153153
{:name :add-new-account
154154
;;TODO dynamic title
155-
:options {:insets {:top? true}}
155+
:options {:insets {:top? true :bottom? true}}
156156
:component add-account/add-account-view}
157157
{:name :add-new-account-pin
158158
;;TODO dynamic title

src/status_im/ui/screens/wallet/account/views.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
{:style styles/round-action-button
212212
:on-press on-press}
213213
(icons/icon icon {:color colors/white})]
214-
[quo/text
214+
[components.core/text
215215
{:color :secondary
216216
:size :small
217217
:style {:margin-top (:tiny spacing/spacing)}}
@@ -348,7 +348,7 @@
348348
:margin-top 8
349349
:margin-horizontal 67.5
350350
:text-align :center}}
351-
[quo/text
351+
[components.core/text
352352
{:color :secondary
353353
:size :small
354354
:style {:text-align :center}}

src/status_im/ui/screens/wallet/accounts/styles.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
:justify-content :center
146146
:left 0
147147
:right 0
148-
:bottom 16
148+
:bottom 56
149149
:height 40})
150150

151151
(defn send-button

src/status_im/ui/screens/wallet/transactions/views.cljs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,11 @@
244244
to to-wallet to-contact
245245
gas-limit gas-price-gwei gas-price-eth gas-used
246246
fee-cap-gwei tip-cap-gwei
247-
cost nonce data]}]
247+
cost nonce data]
248+
:as tx}]
248249
[react/view {:style styles/details-block}
249250
[details-list-row :t/block block]
250-
[details-list-row :t/hash hash]
251+
[details-list-row :t/hash (:hash tx)]
251252
[details-list-row :t/from-capitalized
252253
[{:accessibility-label (if from-wallet :sender-name-text :sender-address-text)}
253254
(or from-wallet from-contact from)]

0 commit comments

Comments
 (0)