status-desktop/storybook/pages/TokenItemPage.qml
Noelia 0ab8a62896 feat(Communities): Communities folder reorganization
- Renamed main `CommunitiesPortal` folder to `Communities`.
- Created new `layouts` folder.
- Moved layout files from chat to communities.
- Created new `helpers` folder.
- Moved helpers files from chat to communities.
- Moved `controls/community` files from chat to communities `controls`.
- Moved `panels/communities` files from chat to communities `panels`.
- Moved `popups/community` files from chat to communities `popups`.
- Moved `views/community` files from chat to communities `views`.
- Moved `CommunityBanner` file from shared to `Communities/controls`. Only used in communities context.
- Moved `CommunitySettingsView` and `CommunityColumnView` files from chat to communities `views`.
- Moved `PermissionsStore.qml` file to `shared/stores`.
- Updated imports.
- Updated storybook.

Part of #6204
2023-06-28 14:28:47 +02:00

97 lines
1.9 KiB
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import Models 1.0
import Storybook 1.0
import utils 1.0
import AppLayouts.Communities.controls 1.0
SplitView {
id: root
orientation: Qt.Vertical
component CustomTokenItem: TokenItem {
name: nameTextField.text
shortName: shortNameTextField.text
amount: amountTextField.text
iconSource: ModelsData.assets.socks
Layout.fillWidth: true
}
Item {
SplitView.fillWidth: true
SplitView.fillHeight: true
Rectangle {
anchors.fill: column
anchors.margins: -1
border.color: "lightgray"
}
ColumnLayout {
id: column
anchors.centerIn: parent
width: 300
CustomTokenItem {}
CustomTokenItem {
selected: true
}
CustomTokenItem {
showSubItemsIcon: true
}
}
}
LogsAndControlsPanel {
SplitView.minimumHeight: 100
SplitView.preferredHeight: 200
SplitView.fillWidth: true
ColumnLayout {
RowLayout {
Label {
text: "Name:\t"
}
TextField {
id: nameTextField
text: "Token name"
}
}
RowLayout {
Label {
text: "Short name:\t"
}
TextField {
id: shortNameTextField
text: "TN"
}
}
RowLayout {
Label {
text: "Amount:\t"
}
TextField {
id: amountTextField
text: "200"
}
}
}
}
}