StatusActionBar: update "share" icon to Feather svg

profile-avatar-switcher
Alex Gleason 2021-09-22 13:14:31 -05:00
rodzic 34d365efce
commit 5ac5ef2e38
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 19 dodań i 4 usunięć

Wyświetl plik

@ -416,8 +416,15 @@ class StatusActionBar extends ImmutablePureComponent {
replyTitle = intl.formatMessage(messages.replyAll);
}
const shareButton = ('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 canShare = ('share' in navigator) && status.get('visibility') === 'public';
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 (

Wyświetl plik

@ -361,8 +361,16 @@ class ActionBar extends React.PureComponent {
}
}
const shareButton = ('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 canShare = ('share' in navigator) && status.get('visibility') === 'public';
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');