Skip to content

Commit

Permalink
fix(wallet): bring back copy wallet address
Browse files Browse the repository at this point in the history
Depends on StatusQ's StatusAddressPanel generic control

Fixes: #6659
  • Loading branch information
stefandunca committed Aug 3, 2022
1 parent 0ba35d3 commit afbac51
Showing 1 changed file with 4 additions and 31 deletions.
35 changes: 4 additions & 31 deletions ui/app/AppLayouts/Wallet/panels/WalletHeader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -56,40 +56,13 @@ Item {
store: root.walletStore
}

// account address button
Button {
StatusAddressPanel {
horizontalPadding: Style.current.halfPadding
verticalPadding: 5
Layout.preferredWidth: 150
background: Rectangle {
implicitWidth: 150
implicitHeight: 32
color: "transparent"
border.width: 1
border.color: Theme.palette.baseColor2
radius: 36
}
//Layout.preferredWidth: 150
address: currentAccount.mixedcaseAddress

contentItem: RowLayout {
spacing: 4
StatusIcon {
Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: 22
Layout.preferredHeight: 22
icon: "address"
color: Theme.palette.baseColor2
}
StatusBaseText {
Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true
text: currentAccount.mixedcaseAddress
color: Theme.palette.directColor5
elide: Text.ElideMiddle
font.pixelSize: Style.current.primaryTextFontSize
font.weight: Font.Medium
}
}
onClicked: store.copyToClipboard(currentAccount.mixedcaseAddress)
onCopy: function (address) => store.copyToClipboard(address)
}
}
}

0 comments on commit afbac51

Please sign in to comment.