Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions storybook/pages/AssetsDetailViewPage.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import QtQuick
import QtQuick.Layouts

import AppLayouts.Wallet.views
import AppLayouts.Wallet.stores as WalletStores

import shared.stores as SharedStores

import Models

Item {
id: root


AssetsDetailView {
anchors.fill: parent

tokensStore: WalletStores.TokensStore {}
currencyStore: SharedStores.CurrenciesStore {}
networkConnectionStore: SharedStores.NetworkConnectionStore {}

networkFilters: NetworksModel.mainnetChainId + ":" +
NetworksModel.sepMainnetChainId

ListModel {
id: addressPerChainModel

Component.onCompleted: {
append([
{
chainId: NetworksModel.mainnetChainId
},
{
chainId: NetworksModel.sepMainnetChainId
}
])
}
}

allNetworksModel: NetworksModel.flatNetworks

token: ({
websiteUrl: "https://status.im",
symbol: "SNT",
name: "Status",
balanceText: "123 SNT",
balance: 123,
marketPrice: 2.3,
description: "Some token description",
addressPerChain: addressPerChainModel,
// communityId: "1",
communityName: "Some community",
communityImage: ModelsData.icons.rarible
})
}
}

// category: Views
// status: good
27 changes: 27 additions & 0 deletions storybook/pages/InformationTilePage.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import QtQuick
import QtQuick.Layouts

import shared.controls

Item {
id: root

ColumnLayout {
anchors.centerIn: parent

InformationTile {
primaryText: "Some text text text text text sdf"
secondaryText: "Unconstrained some secondary text"
}

InformationTile {
Layout.preferredWidth: 150

primaryText: "Some text text text text text sdf"
secondaryText: "Constrained some secondary text"
}
}
}

// category: Controls
// status: good
Loading