Fix propTypes warning in Blurhash, key warning in ProfileInfoPanel

This commit is contained in:
Alex Gleason 2021-07-08 14:54:54 -05:00
parent c505cde24f
commit 1a3a6e2eb5
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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')} />