disable paynym in view only wallets ui

This commit is contained in:
julian 2024-11-14 14:56:17 -06:00 committed by julian-CStack
parent 44f9886ffd
commit 1d22eed7c4
2 changed files with 2 additions and 2 deletions

View file

@ -1138,7 +1138,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
); );
}, },
), ),
if (wallet is PaynymInterface) if (!viewOnly && wallet is PaynymInterface)
WalletNavigationBarItemData( WalletNavigationBarItemData(
label: "PayNym", label: "PayNym",
icon: const PaynymNavIcon(), icon: const PaynymNavIcon(),

View file

@ -286,7 +286,7 @@ class _MoreFeaturesDialogState extends ConsumerState<MoreFeaturesDialog> {
iconAsset: Assets.svg.coinControl.gamePad, iconAsset: Assets.svg.coinControl.gamePad,
onPressed: () async => widget.onCoinControlPressed?.call(), onPressed: () async => widget.onCoinControlPressed?.call(),
), ),
if (wallet is PaynymInterface) if (!isViewOnly && wallet is PaynymInterface)
_MoreFeaturesItem( _MoreFeaturesItem(
label: "PayNym", label: "PayNym",
detail: "Increased address privacy using BIP47", detail: "Increased address privacy using BIP47",