kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
StatusActionBar: update "share" icon to Feather svg
rodzic
34d365efce
commit
5ac5ef2e38
|
@ -416,8 +416,15 @@ class StatusActionBar extends ImmutablePureComponent {
|
||||||
replyTitle = intl.formatMessage(messages.replyAll);
|
replyTitle = intl.formatMessage(messages.replyAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
const shareButton = ('share' in navigator) && status.get('visibility') === 'public' && (
|
const canShare = ('share' in navigator) && status.get('visibility') === 'public';
|
||||||
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.share)} icon='share-alt' onClick={this.handleShareClick} />
|
|
||||||
|
const shareButton = canShare && (
|
||||||
|
<IconButton
|
||||||
|
className='status__action-bar-button'
|
||||||
|
title={intl.formatMessage(messages.share)}
|
||||||
|
src={require('feather-icons/dist/icons/share.svg')}
|
||||||
|
onClick={this.handleShareClick}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -361,8 +361,16 @@ class ActionBar extends React.PureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const shareButton = ('share' in navigator) && status.get('visibility') === 'public' && (
|
const canShare = ('share' in navigator) && status.get('visibility') === 'public';
|
||||||
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.share)} icon='share-alt' onClick={this.handleShare} /></div>
|
|
||||||
|
const shareButton = canShare && (
|
||||||
|
<div className='detailed-status__button'>
|
||||||
|
<IconButton
|
||||||
|
title={intl.formatMessage(messages.share)}
|
||||||
|
src={require('feather-icons/dist/icons/share.svg')}
|
||||||
|
onClick={this.handleShare}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
let reblogIcon = require('feather-icons/dist/icons/repeat.svg');
|
let reblogIcon = require('feather-icons/dist/icons/repeat.svg');
|
||||||
|
|
Ładowanie…
Reference in New Issue