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 && }
@@ -107,6 +108,6 @@ export const Referrals = () => {
- >
+
);
};
diff --git a/apps/trading/client-pages/rewards/rewards.tsx b/apps/trading/client-pages/rewards/rewards.tsx
index 0daf75611..3b0c67145 100644
--- a/apps/trading/client-pages/rewards/rewards.tsx
+++ b/apps/trading/client-pages/rewards/rewards.tsx
@@ -1,8 +1,9 @@
+import { useEffect } from 'react';
+import { titlefy } from '@vegaprotocol/utils';
import { useT } from '../../lib/use-t';
import { RewardsContainer } from '../../components/rewards-container';
import { usePageTitleStore } from '../../stores';
-import { titlefy } from '@vegaprotocol/utils';
-import { useEffect } from 'react';
+import { ErrorBoundary } from '../../components/error-boundary';
export const Rewards = () => {
const t = useT();
@@ -14,9 +15,11 @@ export const Rewards = () => {
updateTitle(titlefy([title]));
}, [updateTitle, title]);
return (
-
-
{title}
-
-
+
+
+
{title}
+
+
+
);
};
diff --git a/apps/trading/components/sidebar/sidebar.tsx b/apps/trading/components/sidebar/sidebar.tsx
index 8827e131b..b54854ae0 100644
--- a/apps/trading/components/sidebar/sidebar.tsx
+++ b/apps/trading/components/sidebar/sidebar.tsx
@@ -16,6 +16,7 @@ import { GetStarted } from '../welcome-dialog';
import { useVegaWallet, useViewAsDialog } from '@vegaprotocol/wallet';
import { useGetCurrentRouteId } from '../../lib/hooks/use-get-current-route-id';
import { useT } from '../../lib/use-t';
+import { ErrorBoundary } from '../error-boundary';
export enum ViewType {
Order = 'Order',
@@ -163,12 +164,14 @@ export const SidebarContent = () => {
if (params.marketId) {
return (
-
- setViews({ type: ViewType.Deposit, assetId }, currentRouteId)
- }
- />
+
+
+ setViews({ type: ViewType.Deposit, assetId }, currentRouteId)
+ }
+ />
+
);
@@ -181,7 +184,9 @@ export const SidebarContent = () => {
if (params.marketId) {
return (
-
+
+
+
);
} else {
@@ -192,7 +197,9 @@ export const SidebarContent = () => {
if (view.type === ViewType.Deposit) {
return (
-
+
+
+
);
}
@@ -200,7 +207,9 @@ export const SidebarContent = () => {
if (view.type === ViewType.Withdraw) {
return (
-
+
+
+
);
}
@@ -208,7 +217,9 @@ export const SidebarContent = () => {
if (view.type === ViewType.Transfer) {
return (
-
+
+
+
);
}
@@ -216,7 +227,9 @@ export const SidebarContent = () => {
if (view.type === ViewType.Settings) {
return (
-
+
+
+
);
}