feat: RecipientTypeSelectionDropdown component added

This commit is contained in:
Michał Cieślak 2023-04-25 22:32:08 +02:00 committed by Michał
parent 1eda1911eb
commit 8d3d156cf7
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,46 @@
import QtQuick 2.15
import QtQuick.Layouts 1.15
import StatusQ.Controls 0.1
StatusDropdown {
id: root
signal ethAddressesSelected
signal communityMembersSelected
width: 289
padding: 8
leftPadding: 16
contentItem: ColumnLayout {
spacing: 8
StatusIconTextButton {
Layout.preferredHeight: 36
Layout.fillWidth: true
spacing: 9
statusIcon: "address"
icon.width: 15
icon.height: 15
text: qsTr("ETH adresses")
onClicked: root.ethAddressesSelected()
}
StatusIconTextButton {
Layout.preferredHeight: 36
Layout.fillWidth: true
spacing: 9
statusIcon: "profile"
icon.width: 15
icon.height: 15
text: qsTr("Community members")
onClicked: root.communityMembersSelected()
}
}
}

View File

@ -13,6 +13,7 @@ MembersDropdown 1.0 MembersDropdown.qml
MembersSelectorPanel 1.0 MembersSelectorPanel.qml MembersSelectorPanel 1.0 MembersSelectorPanel.qml
PermissionItem 1.0 PermissionItem.qml PermissionItem 1.0 PermissionItem.qml
PermissionsDropdown 1.0 PermissionsDropdown.qml PermissionsDropdown 1.0 PermissionsDropdown.qml
RecipientTypeSelectionDropdown 1.0 RecipientTypeSelectionDropdown.qml
TokenItem 1.0 TokenItem.qml TokenItem 1.0 TokenItem.qml
TokenPanel 1.0 TokenPanel.qml TokenPanel 1.0 TokenPanel.qml
singleton PermissionTypes 1.0 PermissionTypes.qml singleton PermissionTypes 1.0 PermissionTypes.qml