Skip to content

Commit

Permalink
🚑 remove fb comment plugin due to dark mode error
Browse files Browse the repository at this point in the history
  • Loading branch information
satnaing committed Mar 28, 2022
1 parent 3818ee5 commit 1213c93
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pages/blog/posts/[slug].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Image from "next/image";
import Script from "next/script";
import { GetStaticPaths, GetStaticProps } from "next";
import { useTheme } from "next-themes";

import BlogHeader from "@/components/blog/BlogHeader";
import SkipToMain from "@/components/SkipToMain";
import SocialLinks from "@/components/SocialLinks";
Expand Down Expand Up @@ -32,6 +34,7 @@ type Props = {
};

const BlogLayout: React.FC<Props> = ({ post }) => {
const { theme } = useTheme();
const postUrl = `${process.env.NEXT_PUBLIC_URL}/blog/posts/${post.slug}`;
return (
<>
Expand Down Expand Up @@ -85,19 +88,20 @@ const BlogLayout: React.FC<Props> = ({ post }) => {
)}
<PostBody content={post.content} />

<hr />
{/* <hr /> */}

{/* Facebook Comment Plugin */}
<div
{/* <div
className="fb-comments my-4"
data-colorscheme="dark"
data-href={postUrl}
data-width="100%"
data-numposts="5"
></div>
></div> */}

{/* Facebook Share Button */}
<div
className="fb-share-button"
className="fb-share-button my-4"
data-href={postUrl}
data-layout="button"
data-size="large"
Expand Down

1 comment on commit 1213c93

@vercel
Copy link

@vercel vercel bot commented on 1213c93 Mar 28, 2022

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.