diff --git a/apps/trading/client-pages/fees/fees.tsx b/apps/trading/client-pages/fees/fees.tsx index 134c26a1a..1cee72cba 100644 --- a/apps/trading/client-pages/fees/fees.tsx +++ b/apps/trading/client-pages/fees/fees.tsx @@ -1,8 +1,9 @@ +import { useEffect } from 'react'; +import { titlefy } from '@vegaprotocol/utils'; +import { ErrorBoundary } from '../../components/error-boundary'; import { FeesContainer } from '../../components/fees-container'; import { useT } from '../../lib/use-t'; import { usePageTitleStore } from '../../stores'; -import { titlefy } from '@vegaprotocol/utils'; -import { useEffect } from 'react'; export const Fees = () => { const t = useT(); @@ -10,13 +11,17 @@ export const Fees = () => { const { updateTitle } = usePageTitleStore((store) => ({ updateTitle: store.updateTitle, })); + useEffect(() => { updateTitle(titlefy([title])); }, [updateTitle, title]); + return ( -
-

{title}

- -
+ +
+

{title}

+ +
+
); }; diff --git a/apps/trading/client-pages/liquidity/liquidity.tsx b/apps/trading/client-pages/liquidity/liquidity.tsx index 2e4f98a7b..cf72e647c 100644 --- a/apps/trading/client-pages/liquidity/liquidity.tsx +++ b/apps/trading/client-pages/liquidity/liquidity.tsx @@ -6,6 +6,7 @@ import { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; import { LiquidityContainer } from '../../components/liquidity-container'; import { useT } from '../../lib/use-t'; +import { ErrorBoundary } from '../../components/error-boundary'; const enum LiquidityTabs { Active = 'active', @@ -58,19 +59,28 @@ export const LiquidityViewContainer = ({ name={t('My liquidity provision')} hidden={!pubKey} > - + + + - + + + - + + + diff --git a/apps/trading/client-pages/markets/markets-page.tsx b/apps/trading/client-pages/markets/markets-page.tsx index f38924556..a39cf9a82 100644 --- a/apps/trading/client-pages/markets/markets-page.tsx +++ b/apps/trading/client-pages/markets/markets-page.tsx @@ -15,6 +15,7 @@ import { useLinks, } from '@vegaprotocol/environment'; import { useT } from '../../lib/use-t'; +import { ErrorBoundary } from '../../components/error-boundary'; export const MarketsPage = () => { const t = useT(); @@ -34,7 +35,9 @@ export const MarketsPage = () => {
- + + + { } > - + + + - + + +
diff --git a/apps/trading/client-pages/portfolio/portfolio.tsx b/apps/trading/client-pages/portfolio/portfolio.tsx index ad17b1cf5..a63f5af2f 100644 --- a/apps/trading/client-pages/portfolio/portfolio.tsx +++ b/apps/trading/client-pages/portfolio/portfolio.tsx @@ -25,6 +25,7 @@ import { DepositsMenu } from '../../components/deposits-menu'; import { WithdrawalsMenu } from '../../components/withdrawals-menu'; import { useGetCurrentRouteId } from '../../lib/hooks/use-get-current-route-id'; import { useT } from '../../lib/use-t'; +import { ErrorBoundary } from '../../components/error-boundary'; const WithdrawalsIndicator = () => { const { ready } = useIncompleteWithdrawals(); @@ -72,19 +73,29 @@ export const Portfolio = () => { name={t('Positions')} menu={} > - + + + - + + + - + + + - + + + - + + + @@ -101,10 +112,14 @@ export const Portfolio = () => { name={t('Collateral')} menu={} > - + + + }> - + + + { indicator={} menu={} > - + + + diff --git a/apps/trading/client-pages/referrals/referrals.tsx b/apps/trading/client-pages/referrals/referrals.tsx index ac06f7257..19c530887 100644 --- a/apps/trading/client-pages/referrals/referrals.tsx +++ b/apps/trading/client-pages/referrals/referrals.tsx @@ -18,6 +18,7 @@ import { usePageTitleStore } from '../../stores'; import { useEffect } from 'react'; import { titlefy } from '@vegaprotocol/utils'; import { useT } from '../../lib/use-t'; +import { ErrorBoundary } from '../../components/error-boundary'; const Nav = () => { const t = useT(); @@ -65,7 +66,7 @@ export const Referrals = () => { }, [updateTitle, t]); return ( - <> + {showNav &&