From 5a3bca9a51df4986f9634897fce7ee8af64b47e1 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Wed, 28 Feb 2024 13:59:18 +0200 Subject: [PATCH] feat(ProfileShowcase): Remove assets tab from settings and profile dialog The assets tab will be implemented later on. It's not needed for this milestone --- ui/app/AppLayouts/Profile/ProfileLayout.qml | 1 - .../Profile/views/MyProfileView.qml | 22 +------------------ ui/imports/shared/views/ProfileDialogView.qml | 4 ---- 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/ui/app/AppLayouts/Profile/ProfileLayout.qml b/ui/app/AppLayouts/Profile/ProfileLayout.qml index ad35421bee..9fa5555439 100644 --- a/ui/app/AppLayouts/Profile/ProfileLayout.qml +++ b/ui/app/AppLayouts/Profile/ProfileLayout.qml @@ -134,7 +134,6 @@ StatusSectionLayout { implicitHeight: parent.height leftParentLayoutMargin: d.leftMargin - walletAssetsStore: root.walletAssetsStore currencyStore: root.currencyStore walletStore: root.store.walletStore profileStore: root.store.profileStore diff --git a/ui/app/AppLayouts/Profile/views/MyProfileView.qml b/ui/app/AppLayouts/Profile/views/MyProfileView.qml index c30946dbbf..3febe4302c 100644 --- a/ui/app/AppLayouts/Profile/views/MyProfileView.qml +++ b/ui/app/AppLayouts/Profile/views/MyProfileView.qml @@ -30,7 +30,6 @@ SettingsContentBase { property PrivacyStore privacyStore property ContactsStore contactsStore property NetworkConnectionStore networkConnectionStore - required property WalletAssetsStore walletAssetsStore required property CurrenciesStore currencyStore property var communitiesModel @@ -48,8 +47,7 @@ SettingsContentBase { Communities = 1, Accounts = 2, Collectibles = 3, - Assets = 4, - Web = 5 + Web = 4 } titleRowComponentLoader.sourceComponent: StatusButton { @@ -102,12 +100,6 @@ SettingsContentBase { text: qsTr("Collectibles") } - StatusTabButton { - objectName: "assetsTabButton" - width: implicitWidth - text: qsTr("Assets") - } - StatusTabButton { objectName: "webTabButton" width: implicitWidth @@ -237,21 +229,9 @@ SettingsContentBase { onShowcaseEntryChanged: priv.hasAnyProfileShowcaseChanges = true onNavigateToAccountsTab: profileTabBar.currentIndex = MyProfileView.TabIndex.Accounts - } - // assets - ProfileShowcaseAssetsPanel { - id: profileShowcaseAssetsPanel - baseModel: root.walletAssetsStore.groupedAccountAssetsModel // TODO: instantiate an assets model in profile module - showcaseModel: root.profileStore.profileShowcaseAssetsModel - addAccountsButtonVisible: root.profileStore.profileShowcaseAccountsModel.hiddenCount > 0 - formatCurrencyAmount: function(amount, symbol) { - return root.currencyStore.formatCurrencyAmount(amount, symbol) - } - onShowcaseEntryChanged: priv.hasAnyProfileShowcaseChanges = true - onNavigateToAccountsTab: profileTabBar.currentIndex = MyProfileView.TabIndex.Accounts } // web diff --git a/ui/imports/shared/views/ProfileDialogView.qml b/ui/imports/shared/views/ProfileDialogView.qml index 56b22d67a1..fdc0dc9a1c 100644 --- a/ui/imports/shared/views/ProfileDialogView.qml +++ b/ui/imports/shared/views/ProfileDialogView.qml @@ -598,10 +598,6 @@ Pane { width: implicitWidth text: qsTr("Collectibles") } - StatusTabButton { - width: implicitWidth - text: qsTr("Assets") - } } // Profile Showcase