diff --git a/web/cashtab/src/components/Common/ApiError.js b/web/cashtab/src/components/Common/ApiError.js
new file mode 100644
--- /dev/null
+++ b/web/cashtab/src/components/Common/ApiError.js
@@ -0,0 +1,15 @@
+import * as React from 'react';
+import { CashLoader } from '@components/Common/CustomIcons';
+import { AlertMsg } from '@components/Common/Atoms';
+
+export const ApiError = () => {
+ return (
+ <>
+
Re-establishing connection...
+
- An error occured on our end. Reconnecting... -
- > +- - An error occured on our end. - Reconnecting... - -
- > - )} + {apiError &&- - An error occured on our end. - Reconnecting... - -
- )} + {apiError &&
- An error occurred on our end.
-
Re-establishing connection...
-
You need at least @@ -140,7 +140,7 @@ ,
You need at least @@ -318,7 +318,7 @@ ,
You need at least @@ -398,7 +398,7 @@ ,
You need at least diff --git a/web/cashtab/src/components/Wallet/Wallet.js b/web/cashtab/src/components/Wallet/Wallet.js --- a/web/cashtab/src/components/Wallet/Wallet.js +++ b/web/cashtab/src/components/Wallet/Wallet.js @@ -7,7 +7,7 @@ import { Link } from 'react-router-dom'; import TokenList from './TokenList'; import TxHistory from './TxHistory'; -import { CashLoader } from '@components/Common/CustomIcons'; +import { ApiError } from '@components/Common/ApiError'; import { BalanceHeader } from '@components/Common/BalanceHeader'; import { BalanceHeaderFiat } from '@components/Common/BalanceHeaderFiat'; import { LoadingCtn, ZeroBalanceHeader } from '@components/Common/Atoms'; @@ -213,15 +213,7 @@ )} > )} - {apiError && ( - <> -
- An error occurred on our end.
-
Re-establishing connection...
-