Refactor icons in web UI to use Icon component (#9951)
* Refactor uses of icons to an Icon component in web UI
* Refactor options passed to the Icon component
* Make tests work with absolute component paths
@ -109,22 +110,22 @@ class ColumnHeader extends React.PureComponent {
}
if(multiColumn&&pinned){
pinButton=<buttonkey='pin-button'className='text-btn column-header__setting-btn'onClick={this.handlePin}><iclassName='fa fa fa-times'/><FormattedMessageid='column_header.unpin'defaultMessage='Unpin'/></button>;
pinButton=<buttonkey='pin-button'className='text-btn column-header__setting-btn'onClick={this.handlePin}><iclassName='fa fa fa-plus'/><FormattedMessageid='column_header.pin'defaultMessage='Pin'/></button>;
<FormattedMessageid='account.moved_to'defaultMessage='{name} has moved to:'values={{name:<bdi><strongdangerouslySetInnerHTML={displayNameHtml}/></bdi> }} />
@ -105,7 +106,7 @@ class Notification extends ImmutablePureComponent {
<divclassName='notification notification-follow focusable'tabIndex='0'aria-label={notificationForScreenReader(intl,intl.formatMessage({id:'notification.follow',defaultMessage:'{name} followed you'},{name:account.get('acct')}),notification.get('created_at'))}>
@ -74,7 +75,7 @@ class BoostModal extends ImmutablePureComponent {
</div>
<divclassName='boost-modal__action-bar'>
<div><FormattedMessageid='boost_modal.combo'defaultMessage='You can press {combo} to skip this next time'values={{combo:<span>Shift+<iclassName='fa fa-retweet'/></span> }} /></div>
<div><FormattedMessageid='boost_modal.combo'defaultMessage='You can press {combo} to skip this next time'values={{combo:<span>Shift+<Iconid='retweet'/></span> }} /></div>