Skip to content

Commit

Permalink
Got date to render.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisForti committed Jul 27, 2024
1 parent 5e5bb6b commit eefa71b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export function Post({ post }: PostProps) {
return (
<main className="text-black">
<h2 className="p-2 text-xl">{post.author}</h2>
<h2 className="p-3">{post.title}</h2>
<h2 className="p-2">{new Date().toLocaleDateString()}</h2>
<h2 className="p-2">{post.title}</h2>
<em className="p-3 text-indigo-700">{post.content}</em>
<h1 className="text p-4 text-5xl">What is Lorem Ipsum?</h1>
<p>
Expand Down Expand Up @@ -88,7 +89,6 @@ export function Post({ post }: PostProps) {
vestibulum dolor. Aenean semper tempus neque a varius. Suspendisse ac
odio eu nunc ornare fringilla. Donec cursus vel lorem ut feugiat.
</em>
<p>{post.author}</p>
</main>
);
}

0 comments on commit eefa71b

Please sign in to comment.