Fix propTypes warning in Blurhash, key warning in ProfileInfoPanel

actually-fix-tabs-bar
Alex Gleason 2021-07-08 14:54:54 -05:00
rodzic c505cde24f
commit 1a3a6e2eb5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -56,7 +56,7 @@ function Blurhash({
}
Blurhash.propTypes = {
hash: PropTypes.string.isRequired,
hash: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
dummy: PropTypes.bool,

Wyświetl plik

@ -131,7 +131,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
{fields.map((pair, i) =>
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}>
<dt dangerouslySetInnerHTML={{ __html: pair.get('name_emojified') }} title={pair.get('name')} />