shared/RootStore: make the SB stub empty

Closes: #16252
This commit is contained in:
Michał Cieślak 2024-09-24 14:14:21 +02:00 committed by Michał
parent 47f75c1ae2
commit 502c8df411
4 changed files with 6 additions and 34 deletions

View File

@ -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;

View File

@ -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 {}

View File

@ -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 {}

View File

@ -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 {}