Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/4-vault' into platf…
Browse files Browse the repository at this point in the history
…orm-pages
  • Loading branch information
a17 committed Oct 13, 2024
2 parents b3fa55b + b8d6fa2 commit 4eb9291
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
26 changes: 13 additions & 13 deletions src/constants/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,22 @@ const CHAINS_TABLE: TTableColumn[] = [
sortType: "none",
dataType: "number",
},
{
name: "Treasury",
keyName: "multisig",
sortType: "none",
dataType: "string",
},
{
name: "Issue",
keyName: "chainLibGithubId",
sortType: "none",
dataType: "number",
},
// {
// name: "Treasury",
// keyName: "multisig",
// sortType: "none",
// dataType: "string",
// },
// {
// name: "Issue",
// keyName: "chainLibGithubId",
// sortType: "none",
// dataType: "number",
// },
{ name: "Status", keyName: "status", sortType: "none", dataType: "string" },
{
name: "Bridges",
keyName: "chainId", //temp
keyName: "bridgesCount",
sortType: "none",
dataType: "number",
},
Expand Down
13 changes: 7 additions & 6 deletions src/modules/Platform/components/Chains/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useEffect } from "react";

import { chains } from "@stabilitydao/stability";
import { chains, getChainBridges } from "@stabilitydao/stability";

import { useStore } from "@nanostores/react";

Expand All @@ -10,7 +10,7 @@ import { Breadcrumbs, TableColumnSort } from "@ui";

import { BridgesList, ChainStatus } from "../../ui";

import { formatNumber, sortTable, getShortAddress } from "@utils";
import { formatNumber, sortTable } from "@utils";

import { CHAINS_TABLE } from "@constants";

Expand All @@ -35,6 +35,7 @@ const Chains = (): JSX.Element => {
const chainsData = Object.entries(chains).map((chain) => ({
...chain[1],
chainId: Number(chain[1].chainId),
bridgesCount: getChainBridges(chain[1].name).length,
tvl: $apiData?.total.chainTvl[chain[0]] || 0,
}));

Expand Down Expand Up @@ -90,8 +91,8 @@ const Chains = (): JSX.Element => {
name,
status,
img,
multisig,
chainLibGithubId,
// chainLibGithubId,
// multisig,
tvl,
}) => (
<tr
Expand All @@ -115,7 +116,7 @@ const Chains = (): JSX.Element => {
<td className="px-4 py-3 text-left whitespace-nowrap">
{formatNumber(tvl, "abbreviate")}
</td>
<td className="px-4 py-3 text-[12px]">
{/* <td className="px-4 py-3 text-[12px]">
<div className="flex">
{multisig && <span>{getShortAddress(multisig)}</span>}
</div>
Expand All @@ -138,7 +139,7 @@ const Chains = (): JSX.Element => {
</a>
)}
</div>
</td>
</td> */}
<td className="px-4 py-3">
<div className="flex items-center justify-center">
<ChainStatus status={status} />
Expand Down

0 comments on commit 4eb9291

Please sign in to comment.