Add gravatar picture to comments

This commit is contained in:
riggraz
2019-09-30 23:28:52 +02:00
parent 4fdb71d488
commit be8f003d70
6 changed files with 25 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ const initialState: IComment = {
body: '',
parentId: null,
userFullName: '<Unknown user>',
userEmail: 'example@example.com',
updatedAt: undefined,
};
@@ -24,6 +25,7 @@ const commentReducer = (
body: action.comment.body,
parentId: action.comment.parent_id,
userFullName: action.comment.user_full_name,
userEmail: action.comment.user_email,
updatedAt: action.comment.updated_at,
};