fix build

This commit is contained in:
Yana
2024-12-17 21:43:25 +07:00
parent fddf1aee28
commit b7c64f290f
4 changed files with 5 additions and 7 deletions
@@ -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);
-2
View File
@@ -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";
@@ -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";
@@ -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";