diff --git a/apps/trading-e2e/src/support/pages/deposits-page.ts b/apps/trading-e2e/src/support/pages/deposits-page.ts index 4072046b6..fbb965696 100644 --- a/apps/trading-e2e/src/support/pages/deposits-page.ts +++ b/apps/trading-e2e/src/support/pages/deposits-page.ts @@ -7,8 +7,7 @@ export default class DepositsPage extends BasePage { amountError = '[role="alert"][aria-describedby="amount"]'; navigateToDeposits() { - cy.visit('/portfolio'); - cy.get(`a[href='/portfolio/deposit']`).click(); + cy.visit('/portfolio/deposit'); cy.url().should('include', '/portfolio/deposit'); cy.getByTestId('deposit-form').should('be.visible'); } diff --git a/apps/trading-e2e/src/support/step_definitions/withdrawals.step.ts b/apps/trading-e2e/src/support/step_definitions/withdrawals.step.ts index 169f8fb1a..2d12cc4bc 100644 --- a/apps/trading-e2e/src/support/step_definitions/withdrawals.step.ts +++ b/apps/trading-e2e/src/support/step_definitions/withdrawals.step.ts @@ -11,13 +11,18 @@ Given('I navigate to withdrawal page', () => { cy.visit('/'); portfolioPage.closeDialog(); marketPage.validateMarketsAreDisplayed(); - portfolioPage.navigateToPortfolio(); - portfolioPage.navigateToWithdraw(); + + // portfolioPage.navigateToPortfolio(); + // portfolioPage.navigateToWithdraw(); + // Navigation functions commented out due to button being removed and not added back in yet + cy.visit('/portfolio/withdraw'); }); Given('I navigate to withdrawals page', () => { - portfolioPage.navigateToPortfolio(); - portfolioPage.navigateToWithdrawals(); + // portfolioPage.navigateToPortfolio(); + // portfolioPage.navigateToWithdrawals(); + // Navigation functions commented out due to button being removed and not added back in yet + cy.visit('/portfolio/withdrawals'); }); When('I clear ethereum address', () => { diff --git a/apps/trading/pages/markets/grid-tabs.tsx b/apps/trading/components/grid-tabs/grid-tabs.tsx similarity index 95% rename from apps/trading/pages/markets/grid-tabs.tsx rename to apps/trading/components/grid-tabs/grid-tabs.tsx index d92b84f4a..e8b938561 100644 --- a/apps/trading/pages/markets/grid-tabs.tsx +++ b/apps/trading/components/grid-tabs/grid-tabs.tsx @@ -50,7 +50,7 @@ export const GridTabs = ({ children, group }: GridTabsProps) => { 'text-black dark:text-vega-yellow': isActive, 'bg-white dark:bg-black': isActive, 'text-black dark:text-white': !isActive, - 'bg-black-10 dark:bg-white-10': !isActive, + 'bg-black-10 dark:bg-white-25': !isActive, }); return ( { ); })} -
+
{Children.map(children, (child) => { diff --git a/apps/trading/components/grid-tabs/index.ts b/apps/trading/components/grid-tabs/index.ts new file mode 100644 index 000000000..67e97632b --- /dev/null +++ b/apps/trading/components/grid-tabs/index.ts @@ -0,0 +1 @@ +export * from './grid-tabs'; diff --git a/apps/trading/pages/markets/trade-grid.tsx b/apps/trading/pages/markets/trade-grid.tsx index 7e6eb7fed..18f865e3f 100644 --- a/apps/trading/pages/markets/trade-grid.tsx +++ b/apps/trading/pages/markets/trade-grid.tsx @@ -2,7 +2,6 @@ import classNames from 'classnames'; import AutoSizer from 'react-virtualized-auto-sizer'; import type { ReactNode } from 'react'; import { useState } from 'react'; -import { GridTab, GridTabs } from './grid-tabs'; import { DealTicketContainer } from '@vegaprotocol/deal-ticket'; import { OrderListContainer } from '@vegaprotocol/order-list'; import { TradesContainer } from '@vegaprotocol/trades'; @@ -13,6 +12,7 @@ import { t } from '@vegaprotocol/react-helpers'; import { AccountsContainer } from '@vegaprotocol/accounts'; import { DepthChartContainer } from '@vegaprotocol/market-depth'; import { CandlesChartContainer } from '@vegaprotocol/candles-chart'; +import { GridTab, GridTabs } from '../../components/grid-tabs'; import { SelectMarketDialog } from '@vegaprotocol/market-list'; import { ArrowDown, PriceCellChange } from '@vegaprotocol/ui-toolkit'; import type { CandleClose } from '@vegaprotocol/types'; diff --git a/apps/trading/pages/portfolio/index.page.tsx b/apps/trading/pages/portfolio/index.page.tsx index 9843a3048..fd1618e6e 100644 --- a/apps/trading/pages/portfolio/index.page.tsx +++ b/apps/trading/pages/portfolio/index.page.tsx @@ -1,39 +1,79 @@ +import { Web3Container } from '../../components/web3-container'; import { t } from '@vegaprotocol/react-helpers'; +import { PositionsContainer } from '@vegaprotocol/positions'; +import { OrderListContainer } from '@vegaprotocol/order-list'; +import { AccountsContainer } from '@vegaprotocol/accounts'; import { AnchorButton } from '@vegaprotocol/ui-toolkit'; +import { WithdrawalsContainer } from './withdrawals/withdrawals-container'; +import { GridTab, GridTabs } from '../../components/grid-tabs'; + const Portfolio = () => { + const tabClassName = 'p-[16px] pl-[316px]'; + return ( -
-

{t('Portfolio')}

-
- - {t('Deposit')} - - - {t('Deposit tEURO')} - -
-
- - {t('View Withdrawals')} - - - {t('Withdraw')} - - - {t('Withdraw tEURO')} - -
-
+ ( +
+
+ +
+ + +
+

+ {t('Positions')} +

+ +
+
+ +
+

+ {t('Orders')} +

+ +
+
+ +
+

+ {t('Fills')} +

+
+
+ +
+

+ {t('History')} +

+
+
+
+
+
+
+ + + + + + + {t('Deposit')} + + + + + + +
+
+ )} + /> ); }; diff --git a/apps/trading/pages/portfolio/withdrawals/index.page.tsx b/apps/trading/pages/portfolio/withdrawals/index.page.tsx index 6132d1f68..2c6af9058 100644 --- a/apps/trading/pages/portfolio/withdrawals/index.page.tsx +++ b/apps/trading/pages/portfolio/withdrawals/index.page.tsx @@ -2,7 +2,7 @@ import { t } from '@vegaprotocol/react-helpers'; import { AnchorButton } from '@vegaprotocol/ui-toolkit'; import { VegaWalletContainer } from '../../../components/vega-wallet-container'; import { Web3Container } from '../../../components/web3-container'; -import { WithdrawalsPageContainer } from './withdrawals-page-container'; +import { WithdrawalsContainer } from './withdrawals-container'; const Withdrawals = () => { return ( @@ -16,7 +16,7 @@ const Withdrawals = () => { {t('Start withdrawal')} - +
)} /> diff --git a/apps/trading/pages/portfolio/withdrawals/withdrawals-page-container.tsx b/apps/trading/pages/portfolio/withdrawals/withdrawals-container.tsx similarity index 92% rename from apps/trading/pages/portfolio/withdrawals/withdrawals-page-container.tsx rename to apps/trading/pages/portfolio/withdrawals/withdrawals-container.tsx index ab0646809..3c735708a 100644 --- a/apps/trading/pages/portfolio/withdrawals/withdrawals-page-container.tsx +++ b/apps/trading/pages/portfolio/withdrawals/withdrawals-container.tsx @@ -2,7 +2,7 @@ import orderBy from 'lodash/orderBy'; import { AsyncRenderer } from '@vegaprotocol/ui-toolkit'; import { useWithdrawals, WithdrawalsTable } from '@vegaprotocol/withdraws'; -export const WithdrawalsPageContainer = () => { +export const WithdrawalsContainer = () => { const { data, loading, error } = useWithdrawals(); return (