fixed formatting
This commit is contained in:
parent
83f832d948
commit
b7eaa8585b
|
@ -166,23 +166,22 @@
|
||||||
:status (when value-out-of-limits? :error)}]}]))
|
:status (when value-out-of-limits? :error)}]}]))
|
||||||
(defn routes-view
|
(defn routes-view
|
||||||
[current-screen-id]
|
[current-screen-id]
|
||||||
(let [token-by-symbol (rf/sub [:send-input-amount-screen/token-by-symbol])
|
(let [token-by-symbol (rf/sub [:send-input-amount-screen/token-by-symbol])
|
||||||
token (rf/sub [:wallet/wallet-send-token])
|
token (rf/sub [:wallet/wallet-send-token])
|
||||||
routes (rf/sub [:send-input-amount-screen/routes])
|
routes (rf/sub [:send-input-amount-screen/routes])
|
||||||
valid-input? (rf/sub [:send-input-amount-screen/valid-input?])
|
valid-input? (rf/sub [:send-input-amount-screen/valid-input?])
|
||||||
amount-in-crypto (rf/sub [:send-input-amount-screen/amount-in-crypto])
|
amount-in-crypto (rf/sub [:send-input-amount-screen/amount-in-crypto])
|
||||||
limit-exceeded? (rf/sub [:send-input-amount-screen/upper-limit-exceeded?])
|
limit-exceeded? (rf/sub [:send-input-amount-screen/upper-limit-exceeded?])
|
||||||
unsupported-token-in-receiver? (rf/sub
|
unsupported-token-in-receiver? (rf/sub
|
||||||
[:send-input-amount-screen/unsupported-token-in-receiver?])
|
[:send-input-amount-screen/unsupported-token-in-receiver?])
|
||||||
request-fetch-routes
|
request-fetch-routes (fn [bounce-duration-ms]
|
||||||
(fn [bounce-duration-ms]
|
(fetch-routes
|
||||||
(fetch-routes
|
{:amount amount-in-crypto
|
||||||
{:amount amount-in-crypto
|
:valid-input? valid-input?
|
||||||
:valid-input? valid-input?
|
:bounce-duration-ms bounce-duration-ms
|
||||||
:bounce-duration-ms bounce-duration-ms
|
:token token
|
||||||
:token token
|
:reset-amounts-to-zero? (and limit-exceeded?
|
||||||
:reset-amounts-to-zero? (and limit-exceeded?
|
(some? routes))}))]
|
||||||
(some? routes))}))]
|
|
||||||
[routes/view
|
[routes/view
|
||||||
{:token token-by-symbol
|
{:token token-by-symbol
|
||||||
:send-amount-in-crypto amount-in-crypto
|
:send-amount-in-crypto amount-in-crypto
|
||||||
|
|
|
@ -107,8 +107,7 @@
|
||||||
(money/bignumber upper-limit)
|
(money/bignumber upper-limit)
|
||||||
conversion-rate)
|
conversion-rate)
|
||||||
(utils/prettify-balance currency-symbol
|
(utils/prettify-balance currency-symbol
|
||||||
(money/bignumber upper-limit)))
|
(money/bignumber upper-limit)))))
|
||||||
))
|
|
||||||
|
|
||||||
(rf/reg-sub :send-input-amount-screen/upper-limit-exceeded?
|
(rf/reg-sub :send-input-amount-screen/upper-limit-exceeded?
|
||||||
:<- [:send-input-amount-screen/state]
|
:<- [:send-input-amount-screen/state]
|
||||||
|
|
Loading…
Reference in New Issue