Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change modals Login, Set App password to page
- Remove Confirm Register Modal - Change Create Wallet modal to page
- Loading branch information
song50119
committed
Nov 22, 2021
1 parent
1dfc9fd
commit 9c649cc
Showing
13 changed files
with
623 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package components | ||
|
||
import ( | ||
"strings" | ||
|
||
"github.com/planetdecred/godcr/ui/decredmaterial" | ||
"github.com/planetdecred/godcr/ui/load" | ||
) | ||
|
||
// CoinImageBySymbol returns image widget for supported asset coins. | ||
func CoinImageBySymbol(icons *load.Icons, coinName string) *decredmaterial.Image { | ||
m := map[string]*decredmaterial.Image{ | ||
"btc": icons.BTC, | ||
"dcr": icons.DCR, | ||
"bch": icons.BCH, | ||
"ltc": icons.LTC, | ||
} | ||
coin, ok := m[strings.ToLower(coinName)] | ||
|
||
if !ok { | ||
return nil | ||
} | ||
|
||
return coin | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.