bridge_ui: tvl sort and force match error
Change-Id: Iddb15929c21b8333214cbef947536958b6a76441
This commit is contained in:
parent
4399fda2fa
commit
d4ea78d2ca
|
@ -263,6 +263,15 @@ export function SolanaCreateAssociatedAddressAlternate() {
|
||||||
content: <Alert severity="error">{parseError(e)}</Alert>,
|
content: <Alert severity="error">{parseError(e)}</Alert>,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
enqueueSnackbar(null, {
|
||||||
|
content: (
|
||||||
|
<Alert severity="error">
|
||||||
|
Derived address does not match the target address. Do you have the
|
||||||
|
same wallet connected?
|
||||||
|
</Alert>
|
||||||
|
),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}, [
|
}, [
|
||||||
|
|
|
@ -142,6 +142,7 @@ const StatsRoot: React.FC<any> = () => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Header: "Total Value (USD)",
|
Header: "Total Value (USD)",
|
||||||
|
id: "totalValue",
|
||||||
accessor: "totalValue",
|
accessor: "totalValue",
|
||||||
align: "right",
|
align: "right",
|
||||||
disableGroupBy: true,
|
disableGroupBy: true,
|
||||||
|
@ -235,6 +236,7 @@ const StatsRoot: React.FC<any> = () => {
|
||||||
columns={tvlColumns}
|
columns={tvlColumns}
|
||||||
data={tvl.data}
|
data={tvl.data}
|
||||||
skipPageReset={false}
|
skipPageReset={false}
|
||||||
|
initialState={{ sortBy: [{ id: "totalValue", desc: true }] }}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -28,7 +28,7 @@ const stopProp = (e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
};
|
};
|
||||||
|
|
||||||
const EnhancedTable = ({ columns, data, skipPageReset }) => {
|
const EnhancedTable = ({ columns, data, skipPageReset, initialState = {} }) => {
|
||||||
const {
|
const {
|
||||||
getTableProps,
|
getTableProps,
|
||||||
headerGroups,
|
headerGroups,
|
||||||
|
@ -43,6 +43,7 @@ const EnhancedTable = ({ columns, data, skipPageReset }) => {
|
||||||
columns,
|
columns,
|
||||||
data,
|
data,
|
||||||
autoResetPage: !skipPageReset,
|
autoResetPage: !skipPageReset,
|
||||||
|
initialState,
|
||||||
},
|
},
|
||||||
useGlobalFilter,
|
useGlobalFilter,
|
||||||
useGroupBy,
|
useGroupBy,
|
||||||
|
|
Loading…
Reference in New Issue