Skip to content

Commit

Permalink
remove comment section from preview
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Dec 19, 2023
1 parent da67737 commit 68e9245
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions app/preview/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import config from '@/lib/config'
import getPreview from '@/lib/queries/getPreview'
import {Metadata} from 'next'
import Image from 'next/image'

// Types.
interface PreviewProps {
Expand Down Expand Up @@ -139,31 +138,6 @@ export default async function Preview({params, searchParams}: PreviewProps) {
</ul>
</div>
</footer>
<section className="border-t-2">
<h3>Comments</h3>
{post.comments.nodes.map((comment) => (
<article key={comment.databaseId}>
<header className="flex items-center gap-2">
<Image
alt={comment.author.node.name}
className="m-0 rounded-full"
height={64}
src={comment.author.node.gravatarUrl}
width={64}
/>
<div className="flex flex-col gap-2">
<h4
className="m-0 p-0 leading-none"
dangerouslySetInnerHTML={{__html: comment.author.node.name}}
/>
<time className="italic">{comment.date}</time>
</div>
</header>

<div dangerouslySetInnerHTML={{__html: comment.content}} />
</article>
))}
</section>
</article>
)
}

1 comment on commit 68e9245

@vercel
Copy link

@vercel vercel bot commented on 68e9245 Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.