mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
fix frost coin assets
This commit is contained in:
parent
032a507e72
commit
441faf4d3a
3 changed files with 0 additions and 35 deletions
|
@ -16,13 +16,6 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
final coinCardProvider = Provider.family<String?, Coin>((ref, coin) {
|
||||
final assets = ref.watch(themeAssetsProvider);
|
||||
|
||||
// TODO: handle this differently by adding proper frost assets to themes
|
||||
if (coin == Coin.bitcoinFrost) {
|
||||
coin = Coin.bitcoin;
|
||||
} else if (coin == Coin.bitcoinFrostTestNet) {
|
||||
coin = Coin.bitcoinTestNet;
|
||||
}
|
||||
|
||||
if (assets is ThemeAssetsV3) {
|
||||
return assets.coinCardImages?[coin.mainNetVersion];
|
||||
} else {
|
||||
|
@ -33,13 +26,6 @@ final coinCardProvider = Provider.family<String?, Coin>((ref, coin) {
|
|||
final coinCardFavoritesProvider = Provider.family<String?, Coin>((ref, coin) {
|
||||
final assets = ref.watch(themeAssetsProvider);
|
||||
|
||||
// TODO: handle this differently by adding proper frost assets to themes
|
||||
if (coin == Coin.bitcoinFrost) {
|
||||
coin = Coin.bitcoin;
|
||||
} else if (coin == Coin.bitcoinFrostTestNet) {
|
||||
coin = Coin.bitcoinTestNet;
|
||||
}
|
||||
|
||||
if (assets is ThemeAssetsV3) {
|
||||
return assets.coinCardFavoritesImages?[coin.mainNetVersion] ??
|
||||
assets.coinCardImages?[coin.mainNetVersion];
|
||||
|
|
|
@ -16,13 +16,6 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
final coinIconProvider = Provider.family<String, Coin>((ref, coin) {
|
||||
final assets = ref.watch(themeAssetsProvider);
|
||||
|
||||
// TODO: handle this differently by adding proper frost assets to themes
|
||||
if (coin == Coin.bitcoinFrost) {
|
||||
coin = Coin.bitcoin;
|
||||
} else if (coin == Coin.bitcoinFrostTestNet) {
|
||||
coin = Coin.bitcoinTestNet;
|
||||
}
|
||||
|
||||
if (assets is ThemeAssets) {
|
||||
switch (coin) {
|
||||
case Coin.bitcoin:
|
||||
|
|
|
@ -16,13 +16,6 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
final coinImageProvider = Provider.family<String, Coin>((ref, coin) {
|
||||
final assets = ref.watch(themeAssetsProvider);
|
||||
|
||||
// TODO: handle this differently by adding proper frost assets to themes
|
||||
if (coin == Coin.bitcoinFrost) {
|
||||
coin = Coin.bitcoin;
|
||||
} else if (coin == Coin.bitcoinFrostTestNet) {
|
||||
coin = Coin.bitcoinTestNet;
|
||||
}
|
||||
|
||||
if (assets is ThemeAssets) {
|
||||
switch (coin) {
|
||||
case Coin.bitcoin:
|
||||
|
@ -71,13 +64,6 @@ final coinImageProvider = Provider.family<String, Coin>((ref, coin) {
|
|||
final coinImageSecondaryProvider = Provider.family<String, Coin>((ref, coin) {
|
||||
final assets = ref.watch(themeAssetsProvider);
|
||||
|
||||
// TODO: handle this differently by adding proper frost assets to themes
|
||||
if (coin == Coin.bitcoinFrost) {
|
||||
coin = Coin.bitcoin;
|
||||
} else if (coin == Coin.bitcoinFrostTestNet) {
|
||||
coin = Coin.bitcoinTestNet;
|
||||
}
|
||||
|
||||
if (assets is ThemeAssets) {
|
||||
switch (coin) {
|
||||
case Coin.bitcoin:
|
||||
|
|
Loading…
Reference in a new issue