diff --git a/client-solid/src/Components/Comment.tsx b/client-solid/src/Components/Comment.tsx index 94fda21..4e64063 100644 --- a/client-solid/src/Components/Comment.tsx +++ b/client-solid/src/Components/Comment.tsx @@ -2,16 +2,14 @@ import { JSXElement, splitProps } from "solid-js"; import { PublicComment } from "../Util/api"; -interface CommentProps { - comment: PublicComment; -} - -export function Comment(props: CommentProps): JSXElement { +export function Comment(props: { comment: PublicComment }): JSXElement { const [local] = splitProps(props, ["comment"]); + const dateOfCreation = new Date(local.comment.created_at).toDateString(); + return ( <>
This post has been edited
{post.content}
+{local.post.content}