disable address generate button for (ba)nano

This commit is contained in:
julian 2023-06-08 09:03:32 -06:00
parent 3c026ab730
commit 4874ef5a63
2 changed files with 16 additions and 4 deletions

View file

@ -303,11 +303,17 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
),
),
),
if (coin != Coin.epicCash && coin != Coin.ethereum)
if (coin != Coin.epicCash &&
coin != Coin.ethereum &&
coin != Coin.banano &&
coin != Coin.nano)
const SizedBox(
height: 12,
),
if (coin != Coin.epicCash && coin != Coin.ethereum)
if (coin != Coin.epicCash &&
coin != Coin.ethereum &&
coin != Coin.banano &&
coin != Coin.nano)
TextButton(
onPressed: generateNewAddress,
style: Theme.of(context)

View file

@ -215,11 +215,17 @@ class _DesktopReceiveState extends ConsumerState<DesktopReceive> {
),
),
),
if (coin != Coin.epicCash && coin != Coin.ethereum)
if (coin != Coin.epicCash &&
coin != Coin.ethereum &&
coin != Coin.banano &&
coin != Coin.nano)
const SizedBox(
height: 20,
),
if (coin != Coin.epicCash && coin != Coin.ethereum)
if (coin != Coin.epicCash &&
coin != Coin.ethereum &&
coin != Coin.banano &&
coin != Coin.nano)
SecondaryButton(
buttonHeight: ButtonHeight.l,
onPressed: generateNewAddress,