Monkey option only shows for banano wallets

This commit is contained in:
ryleedavis 2023-07-27 14:08:08 -06:00
parent bce8ae6b4e
commit 8b8ce89ced

View file

@ -927,22 +927,23 @@ class _WalletViewState extends ConsumerState<WalletView> {
); );
}, },
), ),
WalletNavigationBarItemData( if (coin == Coin.banano)
icon: SvgPicture.asset( WalletNavigationBarItemData(
Assets.svg.monkey, icon: SvgPicture.asset(
height: 20, Assets.svg.monkey,
width: 20, height: 20,
color: Theme.of(context) width: 20,
.extension<StackColors>()! color: Theme.of(context)
.bottomNavIconIcon, .extension<StackColors>()!
), .bottomNavIconIcon,
label: "MonKey", ),
onTap: () { label: "MonKey",
Navigator.of(context).pushNamed( onTap: () {
MonkeyView.routeName, Navigator.of(context).pushNamed(
arguments: widget.walletId, MonkeyView.routeName,
); arguments: widget.walletId,
}), );
}),
if (ref.watch( if (ref.watch(
walletsChangeNotifierProvider.select( walletsChangeNotifierProvider.select(
(value) => value (value) => value