From a344258887f48a79bf4160517cf21f4b132760da Mon Sep 17 00:00:00 2001 From: robhyrk Date: Wed, 29 May 2024 16:58:03 -0400 Subject: [PATCH] feat: configure and add comments system --- components/markets/Comments.tsx | 6 +++--- pages/markets/[marketid].tsx | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/components/markets/Comments.tsx b/components/markets/Comments.tsx index 7bc303bac..f09afdfac 100644 --- a/components/markets/Comments.tsx +++ b/components/markets/Comments.tsx @@ -2,13 +2,13 @@ import { DiscussionEmbed } from "disqus-react"; import { environment } from "lib/constants"; const DisqusComments = ({ post }) => { - const disqusShortname = "thewsx-com"; + const disqusShortname = "zeitgeist-pm"; const disqusConfig = { url: environment === "staging" - ? "http://staging.thewsx.com" + post.marketId - : "http://app.thewsx.com" + post.marketId, + ? "http://staging.zeitgeist.pm" + post.marketId + : "http://app.zeitgeist.pm" + post.marketId, identifier: post.marketId, // Single post id title: post.question, // Single post title }; diff --git a/pages/markets/[marketid].tsx b/pages/markets/[marketid].tsx index 19611df1b..57747cb98 100644 --- a/pages/markets/[marketid].tsx +++ b/pages/markets/[marketid].tsx @@ -84,6 +84,7 @@ import { AiOutlineFileAdd } from "react-icons/ai"; import { BsFillChatSquareTextFill } from "react-icons/bs"; import { CgLivePhoto } from "react-icons/cg"; import { FaChevronUp, FaTwitch } from "react-icons/fa"; +import DisqusComments from "components/markets/Comments"; const TradeForm = dynamic(() => import("../../components/trade-form"), { ssr: false, @@ -577,6 +578,8 @@ const Market: NextPage = ({ )} + +