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(
icon: SvgPicture.asset(
Assets.svg.monkey,
height: 20,
width: 20,
color: Theme.of(context)
.extension<StackColors>()!
.bottomNavIconIcon,
),
label: "MonKey",
onTap: () {
Navigator.of(context).pushNamed(
MonkeyView.routeName,
arguments: widget.walletId,
);
}),
if (coin == Coin.banano)
WalletNavigationBarItemData(
icon: SvgPicture.asset(
Assets.svg.monkey,
height: 20,
width: 20,
color: Theme.of(context)
.extension<StackColors>()!
.bottomNavIconIcon,
),
label: "MonKey",
onTap: () {
Navigator.of(context).pushNamed(
MonkeyView.routeName,
arguments: widget.walletId,
);
}),
if (ref.watch(
walletsChangeNotifierProvider.select(
(value) => value