mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 06:49:18 +01:00
feat(comments): replace disqus component
This commit is contained in:
parent
861d3b8af3
commit
5258215248
@ -57,7 +57,7 @@
|
||||
"error",
|
||||
{
|
||||
"groups": [
|
||||
["react|path"],
|
||||
["^(react|path)"],
|
||||
["^\\u0000"],
|
||||
["^@?\\w"],
|
||||
["^[^. ]"],
|
||||
|
1786
package-lock.json
generated
1786
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -50,6 +50,7 @@
|
||||
"@sentry/gatsby": "^6.19.6",
|
||||
"@sentry/tracing": "^6.19.6",
|
||||
"classnames": "^2.3.1",
|
||||
"disqus-react": "^1.1.2",
|
||||
"gatsby": "^4.12.1",
|
||||
"gatsby-link": "^4.12.1",
|
||||
"gatsby-plugin-catch-links": "^4.12.1",
|
||||
@ -73,10 +74,9 @@
|
||||
"gatsby-source-filesystem": "^4.12.1",
|
||||
"gatsby-transformer-remark": "^5.12.1",
|
||||
"gatsby-transformer-sharp": "^4.12.1",
|
||||
"prismjs": "^1.27.0",
|
||||
"react": "^18.0.0",
|
||||
"react-disqus-comments": "^1.4.0",
|
||||
"react-dom": "^18.0.0",
|
||||
"prismjs": "^1.28.0",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.0",
|
||||
"react-helmet": "^6.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -86,15 +86,15 @@
|
||||
"@jest/globals": "^27.5.1",
|
||||
"@semantic-release/exec": "6.0.3",
|
||||
"@semantic-release/git": "10.0.1",
|
||||
"@swc/core": "^1.2.165",
|
||||
"@swc/core": "^1.2.167",
|
||||
"@swc/jest": "^0.2.20",
|
||||
"@types/gatsby-transformer-remark": "^2.9.1",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^17.0.24",
|
||||
"@types/react": "^18.0.5",
|
||||
"@types/react-dom": "^18.0.1",
|
||||
"@types/react": "^17.0.44",
|
||||
"@types/react-dom": "^17.0.15",
|
||||
"@types/react-helmet": "^6.1.5",
|
||||
"@types/react-test-renderer": "^18.0.0",
|
||||
"@types/react-test-renderer": "^17.0.2",
|
||||
"@types/sass": "^1.43.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
||||
"@typescript-eslint/parser": "^5.19.0",
|
||||
@ -125,7 +125,7 @@
|
||||
"postcss-scss": "^4.0.3",
|
||||
"prettier": "^2.6.2",
|
||||
"prettier-plugin-packagejson": "^2.2.17",
|
||||
"react-test-renderer": "^18.0.0",
|
||||
"react-test-renderer": "^17.0.2",
|
||||
"rimraf": "3.0.2",
|
||||
"sass": "^1.50.0",
|
||||
"semantic-release": "^19.0.2",
|
||||
|
@ -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,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user