From 1e282cabba04aa7fb454d86ed1042f101f82b82e Mon Sep 17 00:00:00 2001 From: Noelia Date: Fri, 17 Feb 2023 12:57:41 +0100 Subject: [PATCH] feat(MintTokens/storybook): Added storybook page for mint tokens welcome page Added storybook support for mint tokens welcome page. --- storybook/PagesModel.qml | 4 ++ .../CommunityMintTokensSettingsPanelPage.qml | 48 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 storybook/pages/CommunityMintTokensSettingsPanelPage.qml diff --git a/storybook/PagesModel.qml b/storybook/PagesModel.qml index d6e83ba645..31367fecc3 100644 --- a/storybook/PagesModel.qml +++ b/storybook/PagesModel.qml @@ -73,6 +73,10 @@ ListModel { title: "DidYouKnowSplashScreen" section: "Panels" } + ListElement { + title: "CommunityMintTokensSettingsPanel" + section: "Panels" + } ListElement { title: "InviteFriendsToCommunityPopup" section: "Popups" diff --git a/storybook/pages/CommunityMintTokensSettingsPanelPage.qml b/storybook/pages/CommunityMintTokensSettingsPanelPage.qml new file mode 100644 index 0000000000..8d3de6cf90 --- /dev/null +++ b/storybook/pages/CommunityMintTokensSettingsPanelPage.qml @@ -0,0 +1,48 @@ +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 + + CommunityMintTokensSettingsPanel { + anchors.fill: parent + anchors.topMargin: 50 + transactionStore: QtObject { + readonly property var currentAccount: QtObject { + readonly property string address: "0x0000001" + } + } + } + } + + LogsAndControlsPanel { + id: logsAndControlsPanel + + SplitView.minimumHeight: 100 + SplitView.preferredHeight: 150 + + logsView.logText: logs.logText + + CheckBox { + id: isOwnerCheckBox + + text: "Is owner" + } + } +}