From b7c64f290f74046448276c71c8b02eb58332d01d Mon Sep 17 00:00:00 2001 From: Yana Date: Tue, 17 Dec 2024 21:43:25 +0700 Subject: [PATCH] fix build --- explorer-nextjs/src/app/account/[id]/page.tsx | 4 +++- explorer-nextjs/src/app/api/index.tsx | 2 -- .../src/components/nymNodePageComponents/NodeMetricsCard.tsx | 2 +- .../src/components/nymNodePageComponents/NodeRewardsCard.tsx | 4 +--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/explorer-nextjs/src/app/account/[id]/page.tsx b/explorer-nextjs/src/app/account/[id]/page.tsx index f3029bd4bf..69f11895a1 100644 --- a/explorer-nextjs/src/app/account/[id]/page.tsx +++ b/explorer-nextjs/src/app/account/[id]/page.tsx @@ -1,3 +1,4 @@ +import type { CurrencyRates } from "@/app/api/types"; import { NYM_ACCOUNT_ADDRESS, NYM_PRICES_API } from "@/app/api/urls"; import { AccountBalancesCard } from "@/components/accountPageComponents/AccountBalancesCard"; import { AccountInfoCard } from "@/components/accountPageComponents/AccountInfoCard"; @@ -48,6 +49,7 @@ export default async function Account({ params: Promise<{ address: string }>; }) { // const address = (await params).address; + console.log("(await params).address :>> ", (await params).address); const address = "n1z0msxu8c098umdhnthpr2ac3ck2n3an97dm8pn"; const nymAccountAddress = `${NYM_ACCOUNT_ADDRESS}${address}`; @@ -74,7 +76,7 @@ export default async function Account({ // refresh event list cache at given interval }); - const nymPriceData = await nymPrice.json(); + const nymPriceData: CurrencyRates = await nymPrice.json(); console.log("nymPriceData :>> ", nymPriceData); diff --git a/explorer-nextjs/src/app/api/index.tsx b/explorer-nextjs/src/app/api/index.tsx index 3f6abc2bec..63abed5899 100644 --- a/explorer-nextjs/src/app/api/index.tsx +++ b/explorer-nextjs/src/app/api/index.tsx @@ -2,8 +2,6 @@ import { CIRCULATING_NYM_SUPPLY, HARBOURMASTER_API_MIXNODES_STATS, - HARBOURMASTER_API_SUMMARY, - NYM_NODE_DESCRIPTION, NYM_NODES_DESCRIBED, NYM_NODE_DESCRIPTION, } from "./urls"; diff --git a/explorer-nextjs/src/components/nymNodePageComponents/NodeMetricsCard.tsx b/explorer-nextjs/src/components/nymNodePageComponents/NodeMetricsCard.tsx index 0bcee68481..eb584cca8f 100644 --- a/explorer-nextjs/src/components/nymNodePageComponents/NodeMetricsCard.tsx +++ b/explorer-nextjs/src/components/nymNodePageComponents/NodeMetricsCard.tsx @@ -1,4 +1,4 @@ -import type { IBondInfo, INodeDescription } from "@/app/api"; +import type { INodeDescription } from "@/app/api"; import ExplorerCard from "../cards/ExplorerCard"; import ExplorerListItem from "../list/ListItem"; diff --git a/explorer-nextjs/src/components/nymNodePageComponents/NodeRewardsCard.tsx b/explorer-nextjs/src/components/nymNodePageComponents/NodeRewardsCard.tsx index c8f97a4470..c13b2e550d 100644 --- a/explorer-nextjs/src/components/nymNodePageComponents/NodeRewardsCard.tsx +++ b/explorer-nextjs/src/components/nymNodePageComponents/NodeRewardsCard.tsx @@ -1,6 +1,4 @@ -import type { IBondInfo, INodeDescription } from "@/app/api"; -import { Stack } from "@mui/material"; -import { format } from "date-fns"; +import type { IBondInfo } from "@/app/api"; import ExplorerCard from "../cards/ExplorerCard"; import ExplorerListItem from "../list/ListItem";