chore(MintTokensSettingsPanel): SettingsPage component moved to own file

It's inteded to be used consistently for all flows in community
settings.
This commit is contained in:
Michał Cieślak 2023-06-29 00:11:58 +02:00 committed by Michał
parent d5a11ce0fa
commit c3a86184ca
3 changed files with 27 additions and 22 deletions

View File

@ -0,0 +1,25 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import AppLayouts.Communities.controls 1.0
Page {
id: root
leftPadding: 64
topPadding: 16
property alias buttons: pageHeader.buttons
property alias pageTitle: pageHeader.title
property alias pageSubtitle: pageHeader.subtitle
background: null
header: SettingsPageHeader {
id: pageHeader
height: 44
leftPadding: 64
rightPadding: width - 560 - leftPadding
}
}

View File

@ -1 +1,2 @@
SettingsPage 1.0 SettingsPage.qml
SettingsPageLayout 1.0 SettingsPageLayout.qml

View File

@ -8,6 +8,7 @@ import StatusQ.Controls 0.1
import AppLayouts.Communities.controls 1.0
import AppLayouts.Communities.helpers 1.0
import AppLayouts.Communities.layouts 1.0
import AppLayouts.Communities.popups 1.0
import AppLayouts.Communities.views 1.0
@ -74,28 +75,6 @@ StackView {
property string previousPageName: depth > 1 ? qsTr("Back") : ""
component SettingsPage: Page {
id: page
leftPadding: 64
topPadding: 16
// refactor to aliasses, why it doesn't work??
property list<StatusButton> buttons//: pageHeader.buttons
property string pageTitle//: pageHeader.title
property string pageSubtitle//: pageHeader.subtitle
header: SettingsPageHeader {
height: 44
leftPadding: 64
rightPadding: width - 560 - leftPadding
title: page.pageTitle
subtitle: page.pageSubtitle
buttons: page.buttons
}
}
initialItem: SettingsPage {
implicitWidth: 0
pageTitle: qsTr("Tokens")