mirror of
https://github.com/status-im/status-react.git
synced 2025-02-28 02:20:50 +00:00
Wallet: account screen jump to (#19732)
Wallet: account screen jump to (#19732)
This commit is contained in:
parent
3951b8a39c
commit
a094d218d5
@ -0,0 +1,6 @@
|
|||||||
|
(ns status-im.contexts.wallet.account.tabs.assets.style
|
||||||
|
(:require [status-im.contexts.shell.jump-to.constants :as constants]))
|
||||||
|
|
||||||
|
(def list-container-style
|
||||||
|
{:padding-horizontal 8
|
||||||
|
:padding-bottom constants/floating-shell-button-height})
|
@ -2,6 +2,7 @@
|
|||||||
(:require
|
(:require
|
||||||
[quo.core :as quo]
|
[quo.core :as quo]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
|
[status-im.contexts.wallet.account.tabs.assets.style :as style]
|
||||||
[status-im.contexts.wallet.common.token-value.view :as token-value]
|
[status-im.contexts.wallet.common.token-value.view :as token-value]
|
||||||
[utils.re-frame :as rf]))
|
[utils.re-frame :as rf]))
|
||||||
|
|
||||||
@ -20,4 +21,4 @@
|
|||||||
:style {:flex 1}
|
:style {:flex 1}
|
||||||
:data tokens
|
:data tokens
|
||||||
:render-data {:watch-only? watch-only?}
|
:render-data {:watch-only? watch-only?}
|
||||||
:content-container-style {:padding-horizontal 8}}])))
|
:content-container-style style/list-container-style}])))
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
(let [selected-tab (reagent/atom first-tab-id)]
|
(let [selected-tab (reagent/atom first-tab-id)]
|
||||||
(fn []
|
(fn []
|
||||||
(let [{:keys [name color formatted-balance
|
(let [{:keys [name color formatted-balance
|
||||||
watch-only?]} (rf/sub [:wallet/current-viewing-account])]
|
watch-only?]} (rf/sub [:wallet/current-viewing-account])
|
||||||
|
customization-color (rf/sub [:profile/customization-color])]
|
||||||
[rn/view {:style {:flex 1}}
|
[rn/view {:style {:flex 1}}
|
||||||
[account-switcher/view
|
[account-switcher/view
|
||||||
{:type :wallet-networks
|
{:type :wallet-networks
|
||||||
@ -55,4 +56,11 @@
|
|||||||
:on-change #(reset! selected-tab %)
|
:on-change #(reset! selected-tab %)
|
||||||
:scrollable? true
|
:scrollable? true
|
||||||
:scroll-on-press? true}]
|
:scroll-on-press? true}]
|
||||||
[tabs/view {:selected-tab @selected-tab}]]))))
|
[tabs/view {:selected-tab @selected-tab}]
|
||||||
|
[quo/floating-shell-button
|
||||||
|
{:jump-to
|
||||||
|
{:on-press #(rf/dispatch [:shell/navigate-to-jump-to])
|
||||||
|
:customization-color customization-color
|
||||||
|
:label (i18n/label :t/jump-to)}}
|
||||||
|
{:position :absolute
|
||||||
|
:bottom 0}]]))))
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
(ns status-im.contexts.wallet.common.collectibles-tab.style
|
||||||
|
(:require [status-im.contexts.shell.jump-to.constants :as constants]))
|
||||||
|
|
||||||
|
(def list-container-style
|
||||||
|
{:margin-horizontal 12
|
||||||
|
:padding-bottom constants/floating-shell-button-height})
|
@ -5,6 +5,7 @@
|
|||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[status-im.common.resources :as resources]
|
[status-im.common.resources :as resources]
|
||||||
[status-im.contexts.wallet.collectible.utils :as utils]
|
[status-im.contexts.wallet.collectible.utils :as utils]
|
||||||
|
[status-im.contexts.wallet.common.collectibles-tab.style :as style]
|
||||||
[status-im.contexts.wallet.common.empty-tab.view :as empty-tab]
|
[status-im.contexts.wallet.common.empty-tab.view :as empty-tab]
|
||||||
[utils.i18n :as i18n]))
|
[utils.i18n :as i18n]))
|
||||||
|
|
||||||
@ -50,7 +51,7 @@
|
|||||||
[rn/flat-list
|
[rn/flat-list
|
||||||
{:data collectibles
|
{:data collectibles
|
||||||
:style {:flex 1}
|
:style {:flex 1}
|
||||||
:content-container-style {:margin-horizontal 12}
|
:content-container-style style/list-container-style
|
||||||
:window-size 11
|
:window-size 11
|
||||||
:num-columns 2
|
:num-columns 2
|
||||||
:render-fn (fn [item index]
|
:render-fn (fn [item index]
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
(ns status-im.contexts.wallet.home.tabs.assets.style)
|
(ns status-im.contexts.wallet.home.tabs.assets.style
|
||||||
|
(:require [status-im.contexts.shell.jump-to.constants :as constants]))
|
||||||
|
|
||||||
(def list-container
|
(def list-container
|
||||||
{:padding-horizontal 8})
|
{:padding-horizontal 8
|
||||||
|
:padding-bottom constants/floating-shell-button-height})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user