feat(storybook): Added airdrop settings panel

Added airdrop settings panel.
Updated holdings dropdown page.
This commit is contained in:
Noelia 2023-03-15 18:14:31 +01:00 committed by Noelia
parent b8b6f36bd9
commit 7aaa16a0c4
4 changed files with 98 additions and 27 deletions

View File

@ -89,6 +89,10 @@ ListModel {
title: "CommunityMintTokensSettingsPanel" title: "CommunityMintTokensSettingsPanel"
section: "Panels" section: "Panels"
} }
ListElement {
title: "CommunityAirdropsSettingsPanel"
section: "Panels"
}
ListElement { ListElement {
title: "InviteFriendsToCommunityPopup" title: "InviteFriendsToCommunityPopup"
section: "Popups" section: "Popups"

View File

@ -127,5 +127,9 @@
], ],
"ProfileSocialLinksPanel": [ "ProfileSocialLinksPanel": [
"https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14588%3A308727&t=cwFGbBHsAGOP0T5R-0" "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"
] ]
} }

View File

@ -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
}
}

View File

@ -7,10 +7,18 @@ import Models 1.0
import AppLayouts.Chat.controls.community 1.0 import AppLayouts.Chat.controls.community 1.0
Pane { SplitView {
id: root id: root
orientation: Qt.Vertical
Item {
id: container
anchors.fill: parent
anchors.margins: 50
RowLayout { RowLayout {
Label { Label {
text: "Open flow:" text: "Open flow:"
} }
@ -36,16 +44,30 @@ Pane {
HoldingsDropdown { HoldingsDropdown {
id: holdingsDropdown id: holdingsDropdown
parent: root parent: container
anchors.centerIn: root anchors.centerIn: container
collectiblesModel: CollectiblesModel {} collectiblesModel: CollectiblesModel {}
assetsModel: AssetsModel {} assetsModel: AssetsModel {}
isENSTab: isEnsTabChecker.checked
onOpened: contentItem.parent.parent = root onOpened: contentItem.parent.parent = container
Component.onCompleted: { Component.onCompleted: {
holdingsDropdown.close() holdingsDropdown.close()
holdingsDropdown.open() holdingsDropdown.open()
} }
} }
}
LogsAndControlsPanel {
SplitView.minimumHeight: 100
SplitView.preferredHeight: 250
CheckBox {
id: isEnsTabChecker
text: "Is ENS tab visible?"
checked: true
}
}
} }