Skip to content

Commit 5b85266

Browse files
committed
trying to fix current prices table component
1 parent 9eab07f commit 5b85266

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/learning-lit/pricing/current-prices.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Current Prices"
33
---
4-
import { CurrentPricesTable } from '../../snippets/CurrentPricesTable';
4+
import { CurrentPricesTable } from "/snippets/CurrentPricesTable.jsx";
55

66
The following table shows the current pricing for Lit Protocol services on the **naga-prod** network. Prices are displayed in both $LITKEY tokens and USD (based on current market rates).
77

docs/snippets/CurrentPricesTable.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect, useState, React } from 'react';
1+
import { useEffect, useState } from 'react';
22
import { createPublicClient, http, formatUnits } from 'viem';
33

44
// Naga Prod PriceFeed contract address
@@ -229,7 +229,7 @@ function formatPrice(priceInTokens, priceInUSD) {
229229
return `${priceInTokens.toFixed(6)} LITKEY ($${priceInUSD.toFixed(6)})`;
230230
}
231231

232-
export function CurrentPricesTable() {
232+
export const CurrentPricesTable = () => {
233233
const [loading, setLoading] = useState(true);
234234
const [error, setError] = useState(null);
235235
const [basePrices, setBasePrices] = useState([]);

0 commit comments

Comments
 (0)