Skip to content

Commit 7fbc040

Browse files
committed
feat(dapp-browser)_: remove history from popup
fixes #19141
1 parent 8316a92 commit 7fbc040

File tree

3 files changed

+5
-49
lines changed

3 files changed

+5
-49
lines changed

ui/app/AppLayouts/Browser/BrowserLayout.qml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ StatusSectionLayout {
3434
required property bool thirdpartyServicesEnabled
3535

3636
required property TransactionStore transactionStore
37-
required property var assetsStore
38-
required property var currencyStore
39-
required property var tokensStore
4037

4138
required property BrowserStores.BookmarksStore bookmarksStore
4239
required property BrowserStores.DownloadsStore downloadsStore
@@ -351,9 +348,6 @@ StatusSectionLayout {
351348
Component {
352349
id: browserWalletMenu
353350
BrowserWalletMenu {
354-
assetsStore: root.assetsStore
355-
currencyStore: root.currencyStore
356-
tokensStore: root.tokensStore
357351
currentTabConnected: root.browserRootStore.currentTabConnected
358352
browserWalletStore: root.browserWalletStore
359353
property point headerPoint: Qt.point(browserHeader.x, browserHeader.y)

ui/app/AppLayouts/Browser/popups/BrowserWalletMenu.qml

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ import AppLayouts.Browser.stores as BrowserStores
1818
Dialog {
1919
id: root
2020

21-
required property var assetsStore
22-
required property var currencyStore
23-
required property var tokensStore
24-
2521
required property bool currentTabConnected
2622
required property BrowserStores.BrowserWalletStore browserWalletStore
2723

@@ -193,42 +189,11 @@ Dialog {
193189
anchors.topMargin: Theme.bigPadding
194190
anchors.bottom: parent.bottom
195191

196-
StatusTabBar {
197-
id: walletTabBar
198-
width: parent.width
199-
anchors.top: parent.top
200-
201-
StatusTabButton {
202-
id: assetBtn
203-
width: implicitWidth
204-
text: qsTr("Assets")
205-
}
206-
StatusTabButton {
207-
id: historyBtn
208-
width: implicitWidth
209-
text: qsTr("History")
210-
}
211-
}
212-
213-
StackLayout {
214-
id: stackLayout
215-
width: parent.width
216-
anchors.top: walletTabBar.bottom
217-
anchors.topMargin: Theme.bigPadding
218-
anchors.bottom: parent.bottom
219-
currentIndex: walletTabBar.currentIndex
220-
221-
// FIXME integrate
222-
// AssetsView {
223-
// id: assetsTab
224-
// controller: root.assetsStore.assetsController
225-
// currencyStore: root.currencyStore
226-
// tokensStore: root.tokensStore
227-
// }
228-
HistoryView {
229-
id: historyTab
230-
overview: root.browserWalletStore.dappBrowserAccount
231-
}
192+
// TODO: Add Assets and History tabs when ready
193+
StatusBaseText {
194+
anchors.centerIn: parent
195+
text: qsTr("Wallet info will appear here")
196+
color: Theme.palette.baseColor1
232197
}
233198
}
234199
onClosed: {

ui/app/mainui/AppMain.qml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,9 +2058,6 @@ Item {
20582058
connectorController: WalletStores.RootStore.dappsConnectorController
20592059

20602060
transactionStore: appMain.transactionStore
2061-
assetsStore: appMain.walletAssetsStore
2062-
currencyStore: appMain.currencyStore
2063-
tokensStore: appMain.tokensStore
20642061
onSendToRecipientRequested: (address) => popupRequestsHandler.sendModalHandler.sendToRecipient(address)
20652062
}
20662063
}

0 commit comments

Comments
 (0)