Skip to content

Commit

Permalink
feat: configure and add comments system
Browse files Browse the repository at this point in the history
  • Loading branch information
robhyrk committed May 29, 2024
1 parent 230be0d commit a344258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/markets/Comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
3 changes: 3 additions & 0 deletions pages/markets/[marketid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -577,6 +578,8 @@ const Market: NextPage<MarketPageProps> = ({
</Transition>
</div>
)}

<DisqusComments post={indexedMarket} />
</div>

<div className="hidden md:-mr-6 md:block md:w-[320px] lg:mr-auto lg:w-[460px]">
Expand Down

0 comments on commit a344258

Please sign in to comment.