Added quote posting to status bar, Removed share from status bar

• Added:
- quote icon
- quote posting to status bar

• Removed:
- share from status bar (all share items now in status ellipsis menu)
- repost options popover
- share option popover
- unused code, constants
This commit is contained in:
mgabdev
2020-05-27 01:13:46 -04:00
parent 2824e9d3b9
commit 0364a4000b
10 changed files with 155 additions and 288 deletions

View File

@@ -77,6 +77,7 @@ class Status extends ImmutablePureComponent {
onClick: PropTypes.func,
onReply: PropTypes.func,
onRepost: PropTypes.func,
onQuote: PropTypes.func,
onFavorite: PropTypes.func,
onMention: PropTypes.func,
onOpenMedia: PropTypes.func,
@@ -291,6 +292,10 @@ class Status extends ImmutablePureComponent {
this.props.onReply(status || this._properStatus(), this.context.router, true)
}
handleOnQuote = (status) => {
this.props.onQuote(status || this._properStatus(), this.context.router)
}
handleHotkeyFavorite = () => {
this.props.onFavorite(this._properStatus())
}
@@ -539,6 +544,7 @@ class Status extends ImmutablePureComponent {
onShare={this.props.onShare}
onOpenLikes={this.props.onOpenLikes}
onOpenReposts={this.props.onOpenReposts}
onQuote={this.handleOnQuote}
/>
}