feat(storybook): Added airdrop settings panel
Added airdrop settings panel. Updated holdings dropdown page.
This commit is contained in:
parent
b8b6f36bd9
commit
7aaa16a0c4
|
@ -89,6 +89,10 @@ ListModel {
|
|||
title: "CommunityMintTokensSettingsPanel"
|
||||
section: "Panels"
|
||||
}
|
||||
ListElement {
|
||||
title: "CommunityAirdropsSettingsPanel"
|
||||
section: "Panels"
|
||||
}
|
||||
ListElement {
|
||||
title: "InviteFriendsToCommunityPopup"
|
||||
section: "Popups"
|
||||
|
|
|
@ -127,5 +127,9 @@
|
|||
],
|
||||
"ProfileSocialLinksPanel": [
|
||||
"https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14588%3A308727&t=cwFGbBHsAGOP0T5R-0"
|
||||
],
|
||||
"CommunityMintTokensSettingsPanel": [
|
||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22602%3A495365&t=PTKo9Q0qIy9YzZxF-1",
|
||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22602%3A495563&t=PTKo9Q0qIy9YzZxF-1"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
import QtQuick 2.14
|
||||
import QtQuick.Controls 2.14
|
||||
|
||||
import AppLayouts.Chat.panels.communities 1.0
|
||||
import AppLayouts.Chat.stores 1.0
|
||||
import StatusQ.Core.Theme 0.1
|
||||
|
||||
import Storybook 1.0
|
||||
import Models 1.0
|
||||
|
||||
|
||||
SplitView {
|
||||
orientation: Qt.Vertical
|
||||
SplitView.fillWidth: true
|
||||
|
||||
Logs { id: logs }
|
||||
|
||||
Rectangle {
|
||||
SplitView.fillWidth: true
|
||||
SplitView.fillHeight: true
|
||||
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
||||
|
||||
CommunityAirdropsSettingsPanel {
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: 50
|
||||
assetsModel: AssetsModel {}
|
||||
collectiblesModel: CollectiblesModel {}
|
||||
|
||||
onAirdropClicked: logs.logEvent("CommunityAirdropsSettingsPanel::onAirdropClicked")
|
||||
}
|
||||
}
|
||||
|
||||
LogsAndControlsPanel {
|
||||
id: logsAndControlsPanel
|
||||
|
||||
SplitView.minimumHeight: 100
|
||||
SplitView.preferredHeight: 150
|
||||
|
||||
logsView.logText: logs.logText
|
||||
}
|
||||
}
|
|
@ -7,45 +7,67 @@ import Models 1.0
|
|||
|
||||
import AppLayouts.Chat.controls.community 1.0
|
||||
|
||||
Pane {
|
||||
SplitView {
|
||||
id: root
|
||||
|
||||
RowLayout {
|
||||
Label {
|
||||
text: "Open flow:"
|
||||
orientation: Qt.Vertical
|
||||
|
||||
Item {
|
||||
id: container
|
||||
anchors.fill: parent
|
||||
anchors.margins: 50
|
||||
|
||||
RowLayout {
|
||||
|
||||
Label {
|
||||
text: "Open flow:"
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Add"
|
||||
onClicked: {
|
||||
holdingsDropdown.close()
|
||||
holdingsDropdown.open()
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Update"
|
||||
onClicked: {
|
||||
holdingsDropdown.close()
|
||||
holdingsDropdown.setActiveTab(HoldingTypes.Type.Ens)
|
||||
holdingsDropdown.openUpdateFlow()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Add"
|
||||
onClicked: {
|
||||
HoldingsDropdown {
|
||||
id: holdingsDropdown
|
||||
|
||||
parent: container
|
||||
anchors.centerIn: container
|
||||
|
||||
collectiblesModel: CollectiblesModel {}
|
||||
assetsModel: AssetsModel {}
|
||||
isENSTab: isEnsTabChecker.checked
|
||||
|
||||
onOpened: contentItem.parent.parent = container
|
||||
Component.onCompleted: {
|
||||
holdingsDropdown.close()
|
||||
holdingsDropdown.open()
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Update"
|
||||
onClicked: {
|
||||
holdingsDropdown.close()
|
||||
holdingsDropdown.setActiveTab(HoldingTypes.Type.Ens)
|
||||
holdingsDropdown.openUpdateFlow()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HoldingsDropdown {
|
||||
id: holdingsDropdown
|
||||
|
||||
parent: root
|
||||
anchors.centerIn: root
|
||||
LogsAndControlsPanel {
|
||||
SplitView.minimumHeight: 100
|
||||
SplitView.preferredHeight: 250
|
||||
|
||||
collectiblesModel: CollectiblesModel {}
|
||||
assetsModel: AssetsModel {}
|
||||
|
||||
onOpened: contentItem.parent.parent = root
|
||||
Component.onCompleted: {
|
||||
holdingsDropdown.close()
|
||||
holdingsDropdown.open()
|
||||
CheckBox {
|
||||
id: isEnsTabChecker
|
||||
text: "Is ENS tab visible?"
|
||||
checked: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue