Compare commits

...
Author SHA1 Message Date
Madalina Raicu 374461fc87 fix: update accounts test 2023-02-20 15:22:47 +00:00
Madalina Raicu ce94affc2d fix(trading): do not pin existing account 2023-02-20 15:11:39 +00:00
Madalina Raicu 6a7bd68fd9 fix(trading): do not pin existing account 2023-02-20 15:09:59 +00:00
Madalina Raicu d6778d555b Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/2864-deposit-flow-from-collateral-tab 2023-02-20 13:57:15 +00:00
Madalina Raicu e9fa7f32b9 feat(trading): re-name to pinned asset 2023-02-17 14:17:14 +01:00
Madalina Raicu c35ddbdbe2 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/2864-deposit-flow-from-collateral-tab 2023-02-17 14:07:17 +01:00
Madalina Raicu 1381666b42 fix(trading): use same type in test 2023-02-16 16:37:42 +00:00
Madalina Raicu cd72adc01d fix(trading): use same type 2023-02-16 16:17:42 +00:00
Madalina Raicu 04885308ac fix: rename variable market asset row 2023-02-16 15:49:57 +00:00
Madalina Raicu 8acce06e01 feat(trading): add accounts test 2023-02-16 15:47:04 +00:00
Madalina Raicu e5bab738f2 feat(trading): add market asset type 2023-02-16 15:35:50 +00:00
Madalina Raicu e19b8f9d56 fix: revert markets.gql 2023-02-16 14:36:35 +00:00
Madalina Raicu d7716f4bc5 feat(trading): show deposit to trade button only when deposied is 0 2023-02-16 14:29:58 +00:00
Madalina Raicu b6525498e5 feat(trading): pin only extra row and leave row data as it is 2023-02-16 14:25:57 +00:00
Madalina Raicu b1cfd36f07 feat(trading): deposit to trade collateral tab pinned row 2023-02-15 20:15:58 +00:00
2 changed files with 3 additions and 3 deletions
@@ -76,7 +76,7 @@ describe('AccountsTable', () => {
expect(rows.length).toBe(6);
});
it('should add first asset as pinned', async () => {
it('should not add first asset as pinned', async () => {
await act(async () => {
render(
<AccountTable
@@ -93,7 +93,7 @@ describe('AccountsTable', () => {
);
});
const rows = await screen.findAllByRole('row');
expect(rows.length).toBe(9);
expect(rows.length).toBe(6);
});
it('should get correct account data', () => {
+1 -1
View File
@@ -58,7 +58,7 @@ export const AccountTable = forwardRef<AgGridReact, AccountTableProps>(
};
}
}
return currentPinnedAssetRow;
return undefined;
}, [pinnedAssetId, props.pinnedAsset, props.rowData]);
return (