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:
parent
992e1e6b13
commit
00bdb0ff15
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue