feat(comments): replace disqus component

This commit is contained in:
Alexander Shelepenok
2022-04-17 13:37:29 +00:00
parent 861d3b8af3
commit 5258215248
4 changed files with 613 additions and 1206 deletions

View File

@@ -1,5 +1,6 @@
import React from "react";
import ReactDisqusComments from "react-disqus-comments";
import { DiscussionEmbed } from "disqus-react";
import { useSiteMetadata } from "@/hooks";
@@ -16,11 +17,13 @@ const Comments: React.FC<Props> = ({ postTitle, postSlug }: Props) => {
}
return (
<ReactDisqusComments
<DiscussionEmbed
shortname={disqusShortname}
identifier={postTitle}
title={postTitle}
url={url + postSlug}
config={{
url: url + postSlug,
identifier: postTitle,
title: postTitle,
}}
/>
);
};