diff --git a/explorer-nextjs/src/app/api/index.tsx b/explorer-nextjs/src/app/api/index.tsx index 63abed5899..c9e495a543 100644 --- a/explorer-nextjs/src/app/api/index.tsx +++ b/explorer-nextjs/src/app/api/index.tsx @@ -122,13 +122,14 @@ export interface INodeDescription { description: { authenticator: object; address: string; - auxiliary_details: object; - accepted_operator_terms_and_conditions: boolean; - announce_ports: { - verloc_port: number | null; - mix_port: number | null; + auxiliary_details: { + location: string; + accepted_operator_terms_and_conditions: boolean; + announce_ports: { + verloc_port: number | null; + mix_port: number | null; + }; }; - location: string; build_information: { binary_name: string; build_timestamp: string; diff --git a/explorer-nextjs/src/app/nym-node/[id]/page.tsx b/explorer-nextjs/src/app/nym-node/[id]/page.tsx index c783e2ff87..0c2b6ec020 100644 --- a/explorer-nextjs/src/app/nym-node/[id]/page.tsx +++ b/explorer-nextjs/src/app/nym-node/[id]/page.tsx @@ -6,6 +6,7 @@ import SectionHeading from "@/components/headings/SectionHeading"; import ExplorerListItem from "@/components/list/ListItem"; import { BasicInfoCard } from "@/components/nymNodePageComponents/BasicInfoCard"; import { NodeMetricsCard } from "@/components/nymNodePageComponents/NodeMetricsCard"; +import { NodeProfileCard } from "@/components/nymNodePageComponents/NodeProfileCard"; import { NodeRewardsCard } from "@/components/nymNodePageComponents/NodeRewardsCard"; import { StarRating } from "@/components/starRating"; import ExplorerButtonGroup from "@/components/toggleButton/ToggleButton"; @@ -68,15 +69,10 @@ export default async function NymNode({ /> - + diff --git a/explorer-nextjs/src/components/nymNodePageComponents/NodeProfileCard.tsx b/explorer-nextjs/src/components/nymNodePageComponents/NodeProfileCard.tsx index a52ba7783b..cd0ba9c7a4 100644 --- a/explorer-nextjs/src/components/nymNodePageComponents/NodeProfileCard.tsx +++ b/explorer-nextjs/src/components/nymNodePageComponents/NodeProfileCard.tsx @@ -1,23 +1,30 @@ "use client"; -import type { BondInformation, NodeDescription } from "@/app/api/types"; +import type { IBondInfo, INodeDescription } from "@/app/api"; import { Box, Button, Stack, Typography } from "@mui/material"; +import { format } from "date-fns"; import { RandomAvatar } from "react-random-avatars"; import ExplorerCard from "../cards/ExplorerCard"; import CountryFlag from "../countryFlag/CountryFlag"; interface INodeProfileCardProps { - bondInfo: BondInformation; - nodeDescription: NodeDescription; + bondInfo: IBondInfo; + nodeDescription: INodeDescription; } export const NodeProfileCard = (props: INodeProfileCardProps) => { const { bondInfo, nodeDescription } = props; + console.log("nodeDescription :>> ", nodeDescription); + return ( - + { {"Moniker"} Team of professional validators with best digital solutions. Please