mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
New comments can be created
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
toggleCommentReply,
|
||||
setCommentReplyBody,
|
||||
} from '../actions/handleCommentReplies';
|
||||
import { submitComment } from '../actions/submitComment';
|
||||
|
||||
import { State } from '../reducers/rootReducer';
|
||||
|
||||
@@ -29,6 +30,15 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
setCommentReplyBody(commentId: number, body: string) {
|
||||
dispatch(setCommentReplyBody(commentId, body));
|
||||
},
|
||||
|
||||
submitComment(
|
||||
postId: number,
|
||||
body: string,
|
||||
parentId: number,
|
||||
authenticityToken: string,
|
||||
) {
|
||||
dispatch(submitComment(postId, body, parentId, authenticityToken));
|
||||
},
|
||||
});
|
||||
|
||||
export default connect(
|
||||
|
||||
Reference in New Issue
Block a user