Progress
This commit is contained in:
@@ -208,6 +208,18 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
}
|
||||
},
|
||||
|
||||
onOpenLikes(status) {
|
||||
if (!me) return dispatch(openModal('UNAUTHORIZED'))
|
||||
|
||||
dispatch(openModal('STATUS_LIKES', { status }))
|
||||
},
|
||||
|
||||
onOpenReposts(status) {
|
||||
if (!me) return dispatch(openModal('UNAUTHORIZED'))
|
||||
|
||||
dispatch(openModal('STATUS_REPOSTS', { status }))
|
||||
},
|
||||
|
||||
onFetchComments(statusId) {
|
||||
dispatch(fetchComments(statusId))
|
||||
},
|
||||
@@ -216,14 +228,6 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
dispatch(fetchContext(statusId))
|
||||
},
|
||||
|
||||
onOpenLikes(status) {
|
||||
dispatch(openModal('STATUS_LIKES', { status }))
|
||||
},
|
||||
|
||||
onOpenReposts(status) {
|
||||
dispatch(openModal('STATUS_REPOSTS', { status }))
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
export default connect(makeMapStateToProps, mapDispatchToProps)(Status);
|
||||
|
||||
Reference in New Issue
Block a user