mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add basic version of Comments component
This commit is contained in:
12
app/javascript/actions/requestComment.ts
Normal file
12
app/javascript/actions/requestComment.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import ICommentJSON from '../interfaces/json/IComment';
|
||||
|
||||
export const COMMENT_REQUEST_SUCCESS = 'COMMENT_REQUEST_SUCCESS';
|
||||
interface CommentRequestSuccessAction {
|
||||
type: typeof COMMENT_REQUEST_SUCCESS;
|
||||
comment: ICommentJSON;
|
||||
}
|
||||
|
||||
export const commentRequestSuccess = (comment: ICommentJSON): CommentRequestSuccessAction => ({
|
||||
type: COMMENT_REQUEST_SUCCESS,
|
||||
comment,
|
||||
});
|
||||
Reference in New Issue
Block a user