Migrate actions,reducers and action types to TS #15
This commit is contained in:
@@ -243,10 +243,9 @@ static propTypes = {
|
||||
const mapDispatchToProps = (dispatch, ownProps) => {
|
||||
return {
|
||||
send: (text, postId, callBack) => {
|
||||
dispatch(commentActions.dbAddComment({
|
||||
dispatch(commentActions.dbAddComment(ownProps.ownerPostUserId,{
|
||||
postId: postId,
|
||||
text: text,
|
||||
ownerPostUserId:ownProps.ownerPostUserId
|
||||
text: text
|
||||
}, callBack))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export class CommentWrite extends Component {
|
||||
const mapDispatchToProps = (dispatch,ownProps) => {
|
||||
return{
|
||||
send: (text,postId,callBack) => {
|
||||
dispatch(commentActions.dbAddComment({
|
||||
dispatch(commentActions.dbAddComment(null,{
|
||||
postId: postId,
|
||||
text: text
|
||||
},callBack))
|
||||
|
||||
Reference in New Issue
Block a user