Skip to content

Commit

Permalink
refactor: move some feed metadata from docs to root level (#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
khadni authored Feb 5, 2025
1 parent 97092a5 commit a4b328e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/features/feeds/components/Tables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const DefaultTr = ({ network, proxy, showExtraDetails, isTestnet = false }) => (
<tr>
<td className={tableStyles.pairCol}>
<div className={tableStyles.assetPair}>
{feedCategories[proxy.docs.feedCategory] || ""}
{feedCategories[proxy.feedCategory] || ""}
{proxy.name}
</div>
{proxy.docs.shutdownDate && (
Expand Down Expand Up @@ -182,21 +182,21 @@ const DefaultTr = ({ network, proxy, showExtraDetails, isTestnet = false }) => (
{!isTestnet && (
<div>
<dl className={tableStyles.listContainer}>
{proxy.docs.assetName && (
{proxy.assetName && (
<div className={tableStyles.definitionGroup}>
<dt>
<span className="label">Asset name:</span>
</dt>
<dd>{proxy.docs.assetName}</dd>
<dd>{proxy.assetName}</dd>
</div>
)}
{proxy.docs.feedType && (
{proxy.feedType && (
<div className={tableStyles.definitionGroup}>
<dt>
<span className="label">Asset type:</span>
</dt>
<dd>
{proxy.docs.feedType}
{proxy.feedType}
{proxy.docs.assetSubClass === "UK" ? " - " + proxy.docs.assetSubClass : ""}
</dd>
</div>
Expand Down Expand Up @@ -906,11 +906,11 @@ export const MainnetTable = ({
if (isDeprecating) return !!chain.docs.shutdownDate

if (dataFeedType === "streamsCrypto") {
return chain.contractType === "verifier" && chain.docs.feedType === "Crypto"
return chain.contractType === "verifier" && chain.feedType === "Crypto"
}

if (dataFeedType === "streamsRwa") {
return chain.contractType === "verifier" && chain.docs.feedType === "Forex"
return chain.contractType === "verifier" && chain.feedType === "Forex"
}

if (isSmartData) {
Expand Down Expand Up @@ -1017,10 +1017,10 @@ export const TestnetTable = ({
.filter((chain) => {
if (isStreams) {
if (dataFeedType === "streamsCrypto") {
return chain.contractType === "verifier" && chain.docs.feedType === "Crypto"
return chain.contractType === "verifier" && chain.feedType === "Crypto"
}
if (dataFeedType === "streamsRwa") {
return chain.contractType === "verifier" && chain.docs.feedType === "Forex"
return chain.contractType === "verifier" && chain.feedType === "Forex"
}
}
if (isSmartData) return !!chain.docs.porType
Expand Down

0 comments on commit a4b328e

Please sign in to comment.