chore: adjust storybook pages to address changes in stores

This commit is contained in:
Michał Cieślak 2024-10-03 10:08:51 +02:00 committed by Michał
parent 2af0d6668b
commit 152fac2e3c
14 changed files with 47 additions and 39 deletions

View File

@ -9,7 +9,7 @@ import Storybook 1.0
import Models 1.0
import AppLayouts.stores 1.0 as AppLayoutStores
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
SplitView {
id: root
@ -23,8 +23,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
QtObject {

View File

@ -7,14 +7,9 @@ import utils 1.0
import Storybook 1.0
import Qt.labs.settings 1.1
import Models 1.0
import AppLayouts.Wallet.controls 1.0
import AppLayouts.stores 1.0 as AppLayoutStores
import AppLayouts.Wallet.views 1.0
import AppLayouts.Wallet.stores 1.0
import Qt.labs.settings 1.1
SplitView {
id: root

View File

@ -17,7 +17,7 @@ import AppLayouts.Communities.stores 1.0 as CommunitiesStore
import AppLayouts.Wallet.views 1.0
import AppLayouts.Wallet.stores 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
import shared.views 1.0
import Storybook 1.0
@ -50,8 +50,9 @@ SplitView {
Popups {
popupParent: root
rootStore: AppLayoutStores.RootStore
communityTokensStore: CommunityTokensStore {}
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
walletCollectiblesStore: CollectiblesStore {
collectiblesController: collectiblesView.controller
}

View File

@ -13,7 +13,7 @@ import Models 1.0
import utils 1.0
import mainui 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
SplitView {
id: root
@ -21,8 +21,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
SplitView {

View File

@ -12,7 +12,7 @@ import utils 1.0
import Storybook 1.0
import Models 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
SplitView {
id: root
@ -25,12 +25,13 @@ SplitView {
assetsWithFilteredBalances: walletAssetStore.groupedAccountsAssetsModel
}
readonly property var currencyStore: CurrenciesStore {}
readonly property var currencyStore: SharedStores.CurrenciesStore {}
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutsStores.RootStore
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
ListModel {

View File

@ -29,7 +29,7 @@ import AppLayouts.Wallet.stores 1.0 as WalletStore
import AppLayouts.stores 1.0 as AppLayoutStores
import mainui 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
import utils 1.0
Item {
@ -38,8 +38,9 @@ Item {
// Needed for DAppsWorkflow->PairWCModal to open its instructions popup
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
SplitView {
@ -303,7 +304,7 @@ Item {
projectId: projectIdText.projectId
}
store: DAppsStore {
store: SharedStores.DAppsStore {
signal dappsListReceived(string dappsJson)
signal userAuthenticated(string topic, string id, string password, string pin)
signal userAuthenticationFailed(string topic, string id)
@ -421,7 +422,7 @@ Item {
function getNetworkShortNames(chainIds) {
return "eth:oeth:arb"
}
readonly property CurrenciesStore currencyStore: CurrenciesStore {}
readonly property SharedStores.CurrenciesStore currencyStore: SharedStores.CurrenciesStore {}
readonly property WalletStore.WalletAssetsStore walletAssetsStore: WalletStore.WalletAssetsStore {
// Silence warnings
assetsWithFilteredBalances: ListModel {}

View File

@ -3,7 +3,7 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import mainui 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
import AppLayouts.stores 1.0 as AppLayoutsStores
import AppLayouts.Communities.panels 1.0
@ -15,8 +15,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutsStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
EditSettingsPanel {

View File

@ -11,7 +11,7 @@ import Storybook 1.0
import utils 1.0
import mainui 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
SplitView {
id: root
@ -20,8 +20,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
SplitView {
@ -70,7 +71,7 @@ SplitView {
}
}
currencyStore: CurrenciesStore {
currencyStore: SharedStores.CurrenciesStore {
property string currentCurrency: "USD"
function updateCurrency(currencyKey) {

View File

@ -6,7 +6,7 @@ import mainui 1.0
import AppLayouts.stores 1.0 as AppLayoutStores
import AppLayouts.Communities.panels 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
SplitView {
id: root
@ -14,8 +14,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
OverviewSettingsPanel {

View File

@ -4,7 +4,7 @@ import QtQuick.Layouts 1.14
import utils 1.0
import shared.views 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
import mainui 1.0
import StatusQ 0.1
@ -172,6 +172,7 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {
property var contactStore: QtObject {
property var contactsModule: null
@ -304,7 +305,7 @@ SplitView {
}
}
}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
WalletAssetsStore {

View File

@ -7,7 +7,7 @@ import StatusQ.Core.Utils 0.1 as CoreUtils
import mainui 1.0
import AppLayouts.stores 1.0 as AppLayoutStores
import AppLayouts.Profile.panels 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
import utils 1.0
@ -22,8 +22,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
ListModel {

View File

@ -18,7 +18,7 @@ import mainui 1.0
import AppLayouts.Wallet.popups.swap 1.0
import AppLayouts.Wallet.stores 1.0
import AppLayouts.stores 1.0 as AppLayoutStores
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
SplitView {
id: root
@ -50,8 +50,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
PopupBackground {
@ -131,7 +132,7 @@ SplitView {
readonly property var baseGroupedAccountAssetModel: GroupedAccountsAssetsModel {}
assetsWithFilteredBalances: thisWalletAssetStore.groupedAccountsAssetsModel
}
currencyStore: CurrenciesStore {
currencyStore: SharedStores.CurrenciesStore {
function formatBigNumber(number: string, symbol: string, noSymbolOption: bool) {
if (!number)
return "N/A"

View File

@ -6,7 +6,7 @@ import Storybook 1.0
import mainui 1.0
import shared.views 1.0
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
import AppLayouts.stores 1.0 as AppLayoutStores
@ -18,8 +18,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
Item {

View File

@ -10,7 +10,7 @@ import utils 1.0
import AppLayouts.stores 1.0 as AppLayoutStores
import AppLayouts.Profile.views 1.0
import AppLayouts.Profile.stores 1.0 as ProfileStores
import shared.stores 1.0
import shared.stores 1.0 as SharedStores
SplitView {
id: root
@ -20,8 +20,9 @@ SplitView {
Popups {
popupParent: root
sharedRootStore: SharedStores.RootStore {}
rootStore: AppLayoutStores.RootStore {}
communityTokensStore: CommunityTokensStore {}
communityTokensStore: SharedStores.CommunityTokensStore {}
}
SyncingView {