Skip to content

Commit

Permalink
feat(doge): change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jul 13, 2021
1 parent 03a02eb commit 3aff763
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/mocks/wallet-options-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
"products": [],
"symbol": "DOGE",
"type": {
"logoPngUrl": "https://raw.githubusercontent.com/blockchain/coin-definitions/master/extensions/blockchains/doge/info/logo.png",
"logoPngUrl": "",
"minimumOnChainConfirmations": 40,
"name": "DogeCoin",
"parentChain": "DOGE",
Expand Down
6 changes: 3 additions & 3 deletions packages/blockchain-info-components/src/Images/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ const Image = (props) => {
const file = Images[name]
const srcSet = srcset ? keysIn(srcset).map((name) => `${Images[name]} ${srcset[name]}`) : []
if (!file) {
return <img />
return <img alt='empty-img' />
}
return <BaseImage src={file} srcSet={srcSet.join(', ')} {...rest} />
}

Image.defaultProps = {
color: 'auto',
height: 'auto',
width: 'auto',
width: 'auto'
}

Image.propTypes = {
color: PropTypes.string,
height: PropTypes.string,
name: PropTypes.string.isRequired,
width: PropTypes.string,
width: PropTypes.string
}

export default Image
1 change: 0 additions & 1 deletion packages/blockchain-info-components/src/Images/Images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import blockchainIcon from './img/bc-icon.svg'
import blockchainLogo from './img/bc-logo.svg'
import blockchainLogoCircle from './img/bc-logo-circle.svg'
import bgBannerPattern from './img/bg-banner-pattern.svg'
import bgBannerBigPattern from './img/bg-banner-pattern-big.svg'
import bgPattern from './img/bg-pattern.svg'
import bitpayLogo from './img/bitpay-logo.svg'
import blankCard from './img/blank-card.svg'
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import algo from './algo.png'
import bch from './bch.png'
import bsv from './bsv.png'
import btc from './btc.png'
import doge from './doge.png'
import dot from './dot.png'
import enj from './enj.png'
import eos from './eos.png'
Expand All @@ -23,6 +24,7 @@ export default {
bch,
bsv,
btc,
doge,
dot,
enj,
eos,
Expand All @@ -37,5 +39,5 @@ export default {
uni,
usd,
xlm,
zrx,
zrx
}

0 comments on commit 3aff763

Please sign in to comment.