mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-18 10:32:53 +00:00
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"
|
title: "CommunityMintTokensSettingsPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
|
ListElement {
|
||||||
|
title: "CommunityAirdropsSettingsPanel"
|
||||||
|
section: "Panels"
|
||||||
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "InviteFriendsToCommunityPopup"
|
title: "InviteFriendsToCommunityPopup"
|
||||||
section: "Popups"
|
section: "Popups"
|
||||||
|
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
41
storybook/pages/CommunityAirdropsSettingsPanelPage.qml
Normal file
41
storybook/pages/CommunityAirdropsSettingsPanelPage.qml
Normal 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
|
||||||
|
}
|
||||||
|
}
|
@ -7,45 +7,67 @@ import Models 1.0
|
|||||||
|
|
||||||
import AppLayouts.Chat.controls.community 1.0
|
import AppLayouts.Chat.controls.community 1.0
|
||||||
|
|
||||||
Pane {
|
SplitView {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
RowLayout {
|
orientation: Qt.Vertical
|
||||||
Label {
|
|
||||||
text: "Open flow:"
|
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 {
|
HoldingsDropdown {
|
||||||
text: "Add"
|
id: holdingsDropdown
|
||||||
onClicked: {
|
|
||||||
|
parent: container
|
||||||
|
anchors.centerIn: container
|
||||||
|
|
||||||
|
collectiblesModel: CollectiblesModel {}
|
||||||
|
assetsModel: AssetsModel {}
|
||||||
|
isENSTab: isEnsTabChecker.checked
|
||||||
|
|
||||||
|
onOpened: contentItem.parent.parent = container
|
||||||
|
Component.onCompleted: {
|
||||||
holdingsDropdown.close()
|
holdingsDropdown.close()
|
||||||
holdingsDropdown.open()
|
holdingsDropdown.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
|
||||||
text: "Update"
|
|
||||||
onClicked: {
|
|
||||||
holdingsDropdown.close()
|
|
||||||
holdingsDropdown.setActiveTab(HoldingTypes.Type.Ens)
|
|
||||||
holdingsDropdown.openUpdateFlow()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HoldingsDropdown {
|
|
||||||
id: holdingsDropdown
|
|
||||||
|
|
||||||
parent: root
|
LogsAndControlsPanel {
|
||||||
anchors.centerIn: root
|
SplitView.minimumHeight: 100
|
||||||
|
SplitView.preferredHeight: 250
|
||||||
|
|
||||||
collectiblesModel: CollectiblesModel {}
|
CheckBox {
|
||||||
assetsModel: AssetsModel {}
|
id: isEnsTabChecker
|
||||||
|
text: "Is ENS tab visible?"
|
||||||
onOpened: contentItem.parent.parent = root
|
checked: true
|
||||||
Component.onCompleted: {
|
|
||||||
holdingsDropdown.close()
|
|
||||||
holdingsDropdown.open()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user