mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
refactor(SelectAccountModal): use StatusQ components to build modal
This commit is contained in:
parent
1de75c514e
commit
2d89a815f4
@ -4,25 +4,29 @@ import QtQuick.Layouts 1.13
|
||||
import QtQuick.Dialogs 1.3
|
||||
|
||||
import utils 1.0
|
||||
import "../../../../shared"
|
||||
import "../../../../shared/controls"
|
||||
import "../../../../shared/popups"
|
||||
import "../../../../shared/status"
|
||||
|
||||
// TODO: replace with StatusModal
|
||||
ModalPopup {
|
||||
import StatusQ.Popups 0.1
|
||||
import StatusQ.Controls 0.1
|
||||
|
||||
import "../../../../shared/controls"
|
||||
|
||||
StatusModal {
|
||||
id: root
|
||||
//% "Select account"
|
||||
title: qsTrId("select-account")
|
||||
header.title: qsTrId("select-account")
|
||||
height: 284
|
||||
property alias accountSelector: selectFromAccount
|
||||
signal selectAndShareAddressButtonClicked()
|
||||
|
||||
contentItem: Item {
|
||||
width: root.width
|
||||
height: childrenRect.height
|
||||
|
||||
TransactionFormGroup {
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: Style.current.padding
|
||||
anchors.rightMargin: Style.current.padding
|
||||
AccountSelector {
|
||||
StatusAccountSelector {
|
||||
id: selectFromAccount
|
||||
accounts: walletModel.accountsView.accounts
|
||||
currency: walletModel.balanceView.defaultCurrency
|
||||
@ -32,19 +36,13 @@ ModalPopup {
|
||||
label: qsTrId("select-account-to-share-and-receive-assets")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer: Item {
|
||||
id: footerContainer
|
||||
width: parent.width
|
||||
height: children[0].height
|
||||
|
||||
rightButtons: [
|
||||
StatusButton {
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Style.current.smallPadding
|
||||
//% "Confirm and share address"
|
||||
text: qsTrId("confirm-and-share-address")
|
||||
anchors.bottom: parent.bottom
|
||||
onClicked: root.selectAndShareAddressButtonClicked()
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user