feat(storybook): Added option in `CommunityNewTokenView` to switch between collectibles and assets

It is now possible to visualise collectibles or assets flow in the storybook page.
This commit is contained in:
Noelia 2023-05-25 12:30:16 +02:00 committed by Noelia
parent 992e1e6b13
commit 00bdb0ff15
2 changed files with 14 additions and 2 deletions

View File

@ -27,6 +27,7 @@ SplitView {
CommunityNewTokenView {
anchors.fill: parent
anchors.margins: 50
isAssetView: isAssetBox.checked
layer1Networks: NetworksModel.layer1Networks
layer2Networks: NetworksModel.layer2Networks
testNetworks: NetworksModel.testNetworks
@ -49,4 +50,15 @@ SplitView {
logsView.logText: logs.logText
}
}
Pane {
SplitView.minimumWidth: 300
SplitView.preferredWidth: 300
CheckBox {
id: isAssetBox
text: "Is Assets View?"
checked: false
}
}
}

View File

@ -34,11 +34,11 @@ StatusScrollView {
property string chainIcon
property var tokensModel
// Collectible properties
// Collectible properties (ERC721)
readonly property alias notTransferable: transferableChecker.checked
readonly property alias selfDestruct: selfDestructChecker.checked
// Asset properties
// Asset properties (ERC20)
readonly property int assetDecimals: assetDecimalsInput.text ? parseInt(assetDecimalsInput.text) : 0
// Network related properties: