bridge_ui: fix tvl table bug
Change-Id: I1b111d0d364341dc82b1049a730523d708827de2
This commit is contained in:
parent
bdabe31b94
commit
487e23814e
|
@ -75,7 +75,13 @@ const StatsRoot: React.FC<any> = () => {
|
|||
const tvl = useTVL();
|
||||
const sortTokens = useMemo(() => {
|
||||
return (rowA: any, rowB: any) => {
|
||||
if (rowA.original.symbol && !rowB.original.symbol) {
|
||||
if (rowA.isGrouped && rowB.isGrouped) {
|
||||
return rowA.values.assetAddress > rowB.values.assetAddress ? 1 : -1;
|
||||
} else if (rowA.isGrouped && !rowB.isGrouped) {
|
||||
return 1;
|
||||
} else if (!rowA.isGrouped && rowB.isGrouped) {
|
||||
return -1;
|
||||
} else if (rowA.original.symbol && !rowB.original.symbol) {
|
||||
return 1;
|
||||
} else if (rowB.original.symbol && !rowA.original.symbol) {
|
||||
return -1;
|
||||
|
|
|
@ -36,6 +36,7 @@ const EnhancedTable = ({ columns, data, skipPageReset }) => {
|
|||
page,
|
||||
gotoPage,
|
||||
setPageSize,
|
||||
rows,
|
||||
state: { pageIndex, pageSize },
|
||||
} = useTable(
|
||||
{
|
||||
|
@ -156,10 +157,10 @@ const EnhancedTable = ({ columns, data, skipPageReset }) => {
|
|||
5,
|
||||
10,
|
||||
25,
|
||||
{ label: "All", value: data.length },
|
||||
{ label: "All", value: rows.length },
|
||||
]}
|
||||
colSpan={columns.length}
|
||||
count={data.length}
|
||||
count={rows.length}
|
||||
rowsPerPage={pageSize}
|
||||
page={pageIndex}
|
||||
SelectProps={{
|
||||
|
|
|
@ -5,8 +5,11 @@
|
|||
### Changed
|
||||
|
||||
Allow separate payer and owner for Solana transfers
|
||||
|
||||
Support multiple EVM chains
|
||||
|
||||
Support native Terra tokens
|
||||
|
||||
Fixed nft_bridge getForeignAssetEth
|
||||
|
||||
## 0.0.5
|
||||
|
@ -14,7 +17,9 @@ Fixed nft_bridge getForeignAssetEth
|
|||
### Added
|
||||
|
||||
NFT Bridge Support
|
||||
|
||||
getClaimAddressSolana
|
||||
|
||||
createMetaOnSolana
|
||||
|
||||
## 0.0.4
|
||||
|
@ -22,6 +27,7 @@ createMetaOnSolana
|
|||
### Added
|
||||
|
||||
redeemOnEthNative
|
||||
|
||||
transferFromEthNative
|
||||
|
||||
## 0.0.3
|
||||
|
@ -29,11 +35,13 @@ transferFromEthNative
|
|||
### Added
|
||||
|
||||
Migration
|
||||
|
||||
NFT Bridge
|
||||
|
||||
### Changed
|
||||
|
||||
Fixed number overflow
|
||||
|
||||
Fixed guardian set index
|
||||
|
||||
## 0.0.2
|
||||
|
|
Loading…
Reference in New Issue