Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CommentComponent #13

Open
yeppog opened this issue Jun 26, 2021 · 0 comments
Open

Create CommentComponent #13

yeppog opened this issue Jun 26, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yeppog
Copy link
Owner

yeppog commented Jun 26, 2021

Create the CommentComponent.

Refer to the schema:

export interface Comment {
  comments: Comment[];
  body: string;
  edited: boolean;
  username: string;
  avatarPath: string;
  createdAt: Date;
}

The component should take in the above props, and map it into a format similar to the post component. Refer to the illustration:

image

The reply button should open an input field for the user to reply to the comment.
The like button should not do anything for now.

Afterwards, update PostPageComponent to take in the new mapping for comments.

@yeppog yeppog added the enhancement New feature or request label Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants