status-desktop/ui/imports/shared/controls/chat/SendTransactionButton.qml
Alexandra Betouni c0450f0580 refactoring (desktop/chat) Message component
Moved Message component & dependencies  to shared
for usage import shared.views.chat 1.0 and accordingly
import shared.controls/panels.chat 1.0

Closes #3927
2021-11-24 13:15:15 +01:00

48 lines
1.1 KiB
QML

import QtQuick 2.3
import utils 1.0
import shared 1.0
import shared.panels 1.0
Item {
id: root
width: parent.width
height: childrenRect.height + Style.current.halfPadding
property var acc
property string fromAddress
property var selectedRecipient
property var selectedAsset
property string selectedAmount
property string selectedFiatAmount
signal sendTransaction()
Separator {
id: separator
}
StyledText {
id: signText
color: Style.current.blue
//% "Sign and send"
text: qsTrId("sign-and-send")
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
font.weight: Font.Medium
anchors.right: parent.right
anchors.left: parent.left
topPadding: Style.current.halfPadding
anchors.top: separator.bottom
font.pixelSize: 15
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
root.sendTransaction();
}
}
}
}