diff --git a/explorer-nextjs/app/components/ExplorerCard.tsx b/explorer-nextjs/app/components/ExplorerCard.tsx index 7c3b8edb9e..341b60b3b5 100644 --- a/explorer-nextjs/app/components/ExplorerCard.tsx +++ b/explorer-nextjs/app/components/ExplorerCard.tsx @@ -1,4 +1,11 @@ -import { Card, CardContent, Typography, Box, IconButton } from "@mui/material"; +import { + Card, + CardContent, + Typography, + Box, + IconButton, + Button, +} from "@mui/material"; import React, { FC, ReactElement, ReactEventHandler, useEffect } from "react"; import { ExplorerLineChart, IExplorerLineChartData } from "./ExplorerLineChart"; import { @@ -17,6 +24,26 @@ import StarIcon from "@mui/icons-material/Star"; import Script from "next/script"; import { useMainContext } from "../context/main"; +declare global { + interface Window { + remark_config: { + host: string; + site_id: string; + components: string[]; + max_shown_comments: number; + theme: string; + locale: string; + show_email_subscription: boolean; + simple_view: boolean; + no_footer: boolean; + }; + REMARK42: { + createInstance: (config: typeof window.remark_config) => void; + changeTheme: (theme: "light" | "dark") => void; + }; + } +} + interface ICardUpDownPriceLineProps { percentage: number; numberWentUp: boolean; @@ -236,7 +263,6 @@ const CardChat = () => { components: ["embed", "last-comments"], max_shown_comments: 100, theme: mode === "light" ? "light" : "dark", - page_title: "My custom title for a page", locale: "en", show_email_subscription: false, simple_view: true, @@ -267,7 +293,7 @@ const CardChat = () => { return ( -
+