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>,
|
||||
});
|
||||
}
|
||||
} 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)",
|
||||
id: "totalValue",
|
||||
accessor: "totalValue",
|
||||
align: "right",
|
||||
disableGroupBy: true,
|
||||
|
@ -235,6 +236,7 @@ const StatsRoot: React.FC<any> = () => {
|
|||
columns={tvlColumns}
|
||||
data={tvl.data}
|
||||
skipPageReset={false}
|
||||
initialState={{ sortBy: [{ id: "totalValue", desc: true }] }}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
|
|
@ -28,7 +28,7 @@ const stopProp = (e) => {
|
|||
e.stopPropagation();
|
||||
};
|
||||
|
||||
const EnhancedTable = ({ columns, data, skipPageReset }) => {
|
||||
const EnhancedTable = ({ columns, data, skipPageReset, initialState = {} }) => {
|
||||
const {
|
||||
getTableProps,
|
||||
headerGroups,
|
||||
|
@ -43,6 +43,7 @@ const EnhancedTable = ({ columns, data, skipPageReset }) => {
|
|||
columns,
|
||||
data,
|
||||
autoResetPage: !skipPageReset,
|
||||
initialState,
|
||||
},
|
||||
useGlobalFilter,
|
||||
useGroupBy,
|
||||
|
|
Loading…
Reference in New Issue