try new Remark42 BE

This commit is contained in:
Yana
2025-01-08 11:33:16 +02:00
parent afa64decc2
commit 9f77ff4d82
3 changed files with 10 additions and 8 deletions
@@ -57,7 +57,7 @@ export default async function NymNode({
const nymNode = nymNodes.find((node) => node.node_id === id);
if (!nymNode || !observatoryNymNode) {
if (!nymNode) {
return null;
}
@@ -29,8 +29,8 @@ export const Remark42Comments = () => {
if (typeof window !== "undefined") {
// Set Remark42 configuration on the window object
window.remark_config = {
host: "https://remark.blockfend.com",
site_id: "nym-explorer-test",
host: "https://remark42.nymte.ch",
site_id: "remark",
components: ["embed", "last-comments"],
max_shown_comments: 100,
theme: "light",
@@ -21,7 +21,7 @@ import ConnectWallet from "../wallet/ConnectWallet";
interface INodeProfileCardProps {
bondInfo: BondInformation;
nodeDescription: NodeDescription;
nodeInfo: IObservatoryNode;
nodeInfo?: IObservatoryNode;
}
export const NodeProfileCard = (props: INodeProfileCardProps) => {
@@ -119,7 +119,7 @@ export const NodeProfileCard = (props: INodeProfileCardProps) => {
mb={1}
sx={{ color: "pine.950", wordWrap: "break-word", maxWidth: "95%" }}
>
{nodeInfo.self_description.moniker}
{nodeInfo?.self_description.moniker || "Moniker"}
</Typography>
{nodeDescription && (
<CountryFlag
@@ -127,9 +127,11 @@ export const NodeProfileCard = (props: INodeProfileCardProps) => {
countryName={nodeDescription.auxiliary_details.location}
/>
)}
<Typography variant="body4" sx={{ color: "pine.950" }} mt={2}>
{nodeInfo.self_description.details}
</Typography>
{nodeInfo && (
<Typography variant="body4" sx={{ color: "pine.950" }} mt={2}>
{nodeInfo.self_description.details}
</Typography>
)}
<Box mt={3}>
<Button
variant="contained"