2021-10-05 20:50:22 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import QtGraphicalEffects 1.13
|
|
|
|
|
2022-05-23 11:45:29 +00:00
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2021-10-05 20:50:22 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.controls 1.0
|
2022-03-25 08:46:47 +00:00
|
|
|
import shared.views 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
|
2021-10-05 20:50:22 +00:00
|
|
|
import "../controls"
|
|
|
|
import "../stores"
|
|
|
|
import "../views"
|
|
|
|
import "../panels"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: walletContainer
|
|
|
|
|
|
|
|
property alias currentTabIndex: walletTabBar.currentIndex
|
2022-01-31 13:29:27 +00:00
|
|
|
property var store
|
2022-03-23 11:08:49 +00:00
|
|
|
property var sendModal
|
2021-10-05 20:50:22 +00:00
|
|
|
|
2022-03-23 11:08:49 +00:00
|
|
|
ColumnLayout {
|
|
|
|
width: parent.width
|
|
|
|
height: parent.height
|
2021-10-05 20:50:22 +00:00
|
|
|
|
2022-03-23 11:08:49 +00:00
|
|
|
WalletHeader {
|
|
|
|
id: walletHeader
|
|
|
|
Layout.fillWidth: true
|
|
|
|
locale: RootStore.locale
|
|
|
|
currency: RootStore.currentCurrency
|
|
|
|
currentAccount: RootStore.currentAccount
|
|
|
|
store: walletContainer.store
|
|
|
|
walletStore: RootStore
|
|
|
|
}
|
2021-10-05 20:50:22 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: walletInfoContent
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2022-05-23 11:45:29 +00:00
|
|
|
StatusTabBar {
|
2021-10-05 20:50:22 +00:00
|
|
|
id: walletTabBar
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.bigPadding
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: Style.current.bigPadding
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: Style.current.padding
|
2022-05-23 11:45:29 +00:00
|
|
|
|
2021-10-05 20:50:22 +00:00
|
|
|
StatusTabButton {
|
|
|
|
id: assetBtn
|
|
|
|
//% "Assets"
|
2022-05-23 11:45:29 +00:00
|
|
|
width: implicitWidth
|
|
|
|
text: qsTrId("wallet-assets")
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
StatusTabButton {
|
|
|
|
id: collectiblesBtn
|
|
|
|
//% "Collectibles"
|
2022-05-23 11:45:29 +00:00
|
|
|
width: implicitWidth
|
|
|
|
text: qsTrId("wallet-collectibles")
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
StatusTabButton {
|
|
|
|
id: historyBtn
|
|
|
|
//% "History"
|
2022-05-23 11:45:29 +00:00
|
|
|
width: implicitWidth
|
|
|
|
text: qsTrId("history")
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StackLayout {
|
|
|
|
id: stackLayout
|
|
|
|
anchors.rightMargin: Style.current.bigPadding
|
|
|
|
anchors.leftMargin: Style.current.bigPadding
|
|
|
|
anchors.top: walletTabBar.bottom
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.topMargin: Style.current.bigPadding
|
|
|
|
currentIndex: walletTabBar.currentIndex
|
|
|
|
|
|
|
|
AssetsView {
|
|
|
|
id: assetsTab
|
2022-03-25 08:46:47 +00:00
|
|
|
account: RootStore.currentAccount
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
CollectiblesView {
|
|
|
|
id: collectiblesTab
|
|
|
|
}
|
|
|
|
HistoryView {
|
|
|
|
id: historyTab
|
2022-03-25 08:46:47 +00:00
|
|
|
account: RootStore.currentAccount
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-23 11:08:49 +00:00
|
|
|
|
|
|
|
WalletFooter {
|
|
|
|
id: walletFooter
|
|
|
|
Layout.fillWidth: true
|
|
|
|
sendModal: walletContainer.sendModal
|
|
|
|
}
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
}
|