use AssetIcon to load asset's icon and do not re-assign img source if error occurs (launching a loop causing image blinking).
use React.memo to do not re-mount asset component each time we render the page (and so do no re-send img requests). Also use React.memo in any others pure functional components (TxIcon, Balance etc...). Why react.memo
This PR cherry-pick AssetIcon commit from #345
AssetIcon
to load asset's icon and do not re-assign img source if error occurs (launching a loop causing image blinking).React.memo
to do not re-mount asset component each time we render the page (and so do no re-send img requests). Also use React.memo in any others pure functional components (TxIcon, Balance etc...). Why react.memo@tiero @bordalix please review