old wallet fixes (#17697)

This commit is contained in:
flexsurfer 2023-10-24 14:36:10 +02:00 committed by GitHub
parent b910f05286
commit ca2b3abb1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 15 deletions

View File

@ -67,18 +67,17 @@
:else theme)
{:keys [icon-color background-color text-color border-color]}
(themes theme')]
(println "theme" theme' background-color)
[rn/touchable-without-feedback
(merge (when on-press
(merge {:disabled disabled
:accessibility-label accessibility-label}
(when on-press
{:on-press on-press})
(when on-long-press
{:on-long-press on-long-press}))
[rn/view
(merge {:background-color background-color
:border-radius border-radius
:type type
:disabled disabled
:accessibility-label accessibility-label}
(merge {:background-color background-color
:border-radius border-radius}
(when border-color
{:border-color border-color
:border-width 1}))

View File

@ -1,7 +1,6 @@
(ns status-im.ui.components.text
(:require
[react-native.core :as rn]
[react-native.reanimated :as animated]
[reagent.core :as reagent]
[status-im.ui.components.colors :as colors]
[status-im.ui.components.typography :as typography]))
@ -44,7 +43,7 @@
[]
(let [this (reagent/current-component)
props (reagent/props this)
component (if (:animated? props) animated/text rn/text)]
component rn/text]
(into [component
(merge {:style (text-style props)}
(dissoc props

View File

@ -152,7 +152,7 @@
:component wallet.account/account}
{:name :add-new-account
;;TODO dynamic title
:options {:insets {:top? true}}
:options {:insets {:top? true :bottom? true}}
:component add-account/add-account-view}
{:name :add-new-account-pin
;;TODO dynamic title

View File

@ -211,7 +211,7 @@
{:style styles/round-action-button
:on-press on-press}
(icons/icon icon {:color colors/white})]
[quo/text
[components.core/text
{:color :secondary
:size :small
:style {:margin-top (:tiny spacing/spacing)}}
@ -348,7 +348,7 @@
:margin-top 8
:margin-horizontal 67.5
:text-align :center}}
[quo/text
[components.core/text
{:color :secondary
:size :small
:style {:text-align :center}}

View File

@ -145,7 +145,7 @@
:justify-content :center
:left 0
:right 0
:bottom 16
:bottom 56
:height 40})
(defn send-button

View File

@ -244,10 +244,11 @@
to to-wallet to-contact
gas-limit gas-price-gwei gas-price-eth gas-used
fee-cap-gwei tip-cap-gwei
cost nonce data]}]
cost nonce data]
:as tx}]
[react/view {:style styles/details-block}
[details-list-row :t/block block]
[details-list-row :t/hash hash]
[details-list-row :t/hash (:hash tx)]
[details-list-row :t/from-capitalized
[{:accessibility-label (if from-wallet :sender-name-text :sender-address-text)}
(or from-wallet from-contact from)]