Skip to content

Commit

Permalink
Add ShareButtons component to news page
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMtnDrifter committed Feb 13, 2024
1 parent 0e952ce commit dd258a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/[locale]/news/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Date from "@/components/Date";
import ShareButtons from "@/components/shareButtons/ShareButtons";

import { checkIfSlugIsValid, getPostData } from "@/lib/news";
import { notFound } from "next/navigation";
Expand Down Expand Up @@ -55,6 +56,7 @@ export default async function Post({ params }: Props) {
className="prose dark:prose-invert prose-headings:font-display prose-a:text-primary prose-pre:bg-muted prose-pre:py-3 prose-pre:px-4 prose-pre:rounded prose-img:rounded-md max-w-none"
dangerouslySetInnerHTML={{ __html: postData.contentHtml }}
/>
<ShareButtons slug={params.slug} />
</div>
</div>
);
Expand Down

0 comments on commit dd258a3

Please sign in to comment.