diff --git a/storybook/pages/CollectibleDetailViewPage.qml b/storybook/pages/CollectibleDetailViewPage.qml index a59f6d279e..6c1da6443a 100644 --- a/storybook/pages/CollectibleDetailViewPage.qml +++ b/storybook/pages/CollectibleDetailViewPage.qml @@ -87,7 +87,7 @@ SplitView { activityModel: d.transactionsModel addressFilters: d.addressesSelected rootStore: SharedStores.RootStore { - currentCurrency: "EUR" + readonly property string currentCurrency: "EUR" function getFiatValue(cryptoValue, symbol) { return cryptoValue * 0.1; diff --git a/storybook/pages/StatusChatInputPage.qml b/storybook/pages/StatusChatInputPage.qml index 7ca6c1a23a..73253873c8 100644 --- a/storybook/pages/StatusChatInputPage.qml +++ b/storybook/pages/StatusChatInputPage.qml @@ -96,8 +96,8 @@ SplitView { usersModel: fakeUsersModel sharedStore: SharedStores.RootStore { - isWalletEnabled: true - gifUnfurlingEnabled: true + property bool isWalletEnabled: true + property bool gifUnfurlingEnabled: true property var gifStore: SharedStores.GifStore { property var gifColumnA: ListModel {} diff --git a/storybook/qmlTests/tests/tst_StatusChatInput.qml b/storybook/qmlTests/tests/tst_StatusChatInput.qml index 49b5c218cb..0fdcef164c 100644 --- a/storybook/qmlTests/tests/tst_StatusChatInput.qml +++ b/storybook/qmlTests/tests/tst_StatusChatInput.qml @@ -29,8 +29,8 @@ Item { usersModel: ListModel {} sharedStore: SharedStores.RootStore { - isWalletEnabled: true - gifUnfurlingEnabled: true + property bool isWalletEnabled: true + property bool gifUnfurlingEnabled: true property var gifStore: SharedStores.GifStore { property var gifColumnA: ListModel {} diff --git a/storybook/stubs/shared/stores/RootStore.qml b/storybook/stubs/shared/stores/RootStore.qml index cc3844f2cf..c1b71cdad1 100644 --- a/storybook/stubs/shared/stores/RootStore.qml +++ b/storybook/stubs/shared/stores/RootStore.qml @@ -1,31 +1,3 @@ import QtQuick 2.15 -QtObject { - property var userProfileInst - property bool gifUnfurlingEnabled - property bool isWalletEnabled - property var currentCurrency - property bool neverAskAboutUnfurlingAgain: false - - property var currencyStore: CurrenciesStore {} - property var history - - property var getFiatValue - property var getLatestBlockNumber - property var formatCurrencyAmount - property var getNameForSavedWalletAddress - property var getNameForAddress - property var getEnsForSavedWalletAddress - property var getChainShortNamesForSavedWalletAddress - property var getGasEthValue - property var flatNetworks - - function setNeverAskAboutUnfurlingAgain(value) { - console.log("STUB: setNeverAskAboutUnfurlingAgain:", value) - neverAskAboutUnfurlingAgain = value - } - - function getHistoricalDataForToken(symbol, currency) { - console.log("STUB: getHistoricalDataForToken:", symbol, currency) - } -} +QtObject {}