Skip to content

Commit

Permalink
Make Comment an arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Oct 15, 2023
1 parent 5fdffe8 commit 3a1df66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/comments/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface CommentProps {
commentText: string;
}

export function Comment(props: CommentProps) {
const Comment = (props: CommentProps) => {
return (
<div className="comment">
<Image
Expand All @@ -22,4 +22,6 @@ export function Comment(props: CommentProps) {
</div>
</div>
);
}
};

export default Comment;
2 changes: 1 addition & 1 deletion src/components/comments/Comments.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import CommentsHeader from "./CommentsHeader";
import AddComment from "./AddComment";
import { Comment } from "./Comment";
import Comment from "./Comment";

// Define a type for your comment objects
interface CommentObject {
Expand Down

0 comments on commit 3a1df66

Please sign in to comment.