mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Basic comments visualisation
This commit is contained in:
@@ -7,8 +7,9 @@ import IComment from '../interfaces/IComment';
|
||||
const initialState: IComment = {
|
||||
id: 0,
|
||||
body: '',
|
||||
userFullName: '',
|
||||
updatedAt: '',
|
||||
parentId: null,
|
||||
userFullName: '<Unknown user>',
|
||||
updatedAt: undefined,
|
||||
};
|
||||
|
||||
const commentReducer = (
|
||||
@@ -20,6 +21,7 @@ const commentReducer = (
|
||||
return {
|
||||
id: action.comment.id,
|
||||
body: action.comment.body,
|
||||
parentId: action.comment.parent_id,
|
||||
userFullName: action.comment.user_full_name,
|
||||
updatedAt: action.comment.updated_at,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user