bridge_ui: tvl sort and force match error

Change-Id: Iddb15929c21b8333214cbef947536958b6a76441
This commit is contained in:
Evan Gray 2021-10-20 13:04:31 -04:00
parent 4399fda2fa
commit d4ea78d2ca
3 changed files with 13 additions and 1 deletions

View File

@ -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>
),
});
}
})();
}, [

View File

@ -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 }] }}
/>
</>
)}

View File

@ -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,