mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
feat(MintToken): Updated sortable token holders with generic SQ component
Replaced existing `NoHoldersPanel` component to the generic `StatusInfoBoxPanel` one.
This commit is contained in:
parent
c59758b377
commit
dea020fdba
@ -1,58 +0,0 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtQuick.Controls 2.15
|
||||
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Core 0.1
|
||||
import StatusQ.Core.Theme 0.1
|
||||
|
||||
import utils 1.0
|
||||
|
||||
Control {
|
||||
id: root
|
||||
|
||||
signal airdropRequested
|
||||
|
||||
verticalPadding: 40
|
||||
horizontalPadding: 56
|
||||
|
||||
background: Rectangle {
|
||||
color: Theme.palette.statusListItem.backgroundColor
|
||||
radius: Style.current.radius
|
||||
border.color: Theme.palette.baseColor2
|
||||
}
|
||||
|
||||
contentItem: ColumnLayout {
|
||||
StatusBaseText {
|
||||
Layout.fillWidth: true
|
||||
|
||||
wrapMode: Text.Wrap
|
||||
font.pixelSize: Style.current.primaryTextFontSize + 2
|
||||
font.weight: Font.Bold
|
||||
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: Theme.palette.directColor1
|
||||
text: qsTr("No hodlers just yet")
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.current.halfPadding
|
||||
Layout.bottomMargin: Style.current.padding
|
||||
|
||||
wrapMode: Text.Wrap
|
||||
font.pixelSize: Style.current.primaryTextFontSize
|
||||
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: Theme.palette.baseColor1
|
||||
text: qsTr("You can Airdrop tokens to deserving Community members or to give individuals token-based permissions.")
|
||||
}
|
||||
|
||||
StatusButton {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: qsTr("Airdrop")
|
||||
|
||||
onClicked: root.airdropRequested()
|
||||
}
|
||||
}
|
||||
}
|
@ -3,6 +3,7 @@ import QtQuick.Layouts 1.15
|
||||
import QtQuick.Controls 2.15
|
||||
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Components 0.1
|
||||
import StatusQ.Core 0.1
|
||||
import StatusQ.Core.Theme 0.1
|
||||
import StatusQ.Core.Utils 0.1
|
||||
@ -102,13 +103,16 @@ Control {
|
||||
? qsTr("Search results") : qsTr("No hodlers found")
|
||||
}
|
||||
|
||||
NoHoldersPanel {
|
||||
StatusInfoBoxPanel {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.current.padding
|
||||
|
||||
visible: root.empty
|
||||
title: qsTr("No hodlers just yet")
|
||||
text: qsTr("You can Airdrop tokens to deserving Community members or to give individuals token-based permissions.")
|
||||
buttonText: qsTr("Airdrop")
|
||||
|
||||
onAirdropRequested: root.generalAirdropRequested()
|
||||
onClicked: root.generalAirdropRequested()
|
||||
}
|
||||
|
||||
SortableTokenHoldersList {
|
||||
|
Loading…
x
Reference in New Issue
Block a user