Fix propTypes warning in Blurhash, key warning in ProfileInfoPanel
This commit is contained in:
parent
c505cde24f
commit
1a3a6e2eb5
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ function Blurhash({
|
||||||
}
|
}
|
||||||
|
|
||||||
Blurhash.propTypes = {
|
Blurhash.propTypes = {
|
||||||
hash: PropTypes.string.isRequired,
|
hash: PropTypes.string,
|
||||||
width: PropTypes.number,
|
width: PropTypes.number,
|
||||||
height: PropTypes.number,
|
height: PropTypes.number,
|
||||||
dummy: PropTypes.bool,
|
dummy: PropTypes.bool,
|
||||||
|
|
|
@ -131,7 +131,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
|
|
||||||
{fields.map((pair, i) =>
|
{fields.map((pair, i) =>
|
||||||
isTicker(pair.get('name', '')) ? (
|
isTicker(pair.get('name', '')) ? (
|
||||||
<CryptoAddress ticker={getTicker(pair.get('name')).toLowerCase()} address={pair.get('value_plain')} />
|
<CryptoAddress key={i} ticker={getTicker(pair.get('name')).toLowerCase()} address={pair.get('value_plain')} />
|
||||||
) : (
|
) : (
|
||||||
<dl className='profile-info-panel-content__fields__item' key={i}>
|
<dl className='profile-info-panel-content__fields__item' key={i}>
|
||||||
<dt dangerouslySetInnerHTML={{ __html: pair.get('name_emojified') }} title={pair.get('name')} />
|
<dt dangerouslySetInnerHTML={{ __html: pair.get('name_emojified') }} title={pair.get('name')} />
|
||||||
|
|
Loading…
Reference in a new issue