fix(trading): remove the apploader from bootstrap (#6121)
This commit is contained in:
parent
e28cdb2463
commit
1e15032c06
@ -1,6 +1,5 @@
|
|||||||
import type { InMemoryCacheConfig } from '@apollo/client';
|
import type { InMemoryCacheConfig } from '@apollo/client';
|
||||||
import {
|
import {
|
||||||
AppLoader,
|
|
||||||
NetworkLoader,
|
NetworkLoader,
|
||||||
useEnvironment,
|
useEnvironment,
|
||||||
useNodeSwitcherStore,
|
useNodeSwitcherStore,
|
||||||
@ -86,10 +85,6 @@ export const Bootstrapper = ({ children }: { children: ReactNode }) => {
|
|||||||
}));
|
}));
|
||||||
const config = useVegaWalletConfig();
|
const config = useVegaWalletConfig();
|
||||||
|
|
||||||
if (!config) {
|
|
||||||
return <AppLoader />;
|
|
||||||
}
|
|
||||||
|
|
||||||
const ERR_DATA_LOADER = (
|
const ERR_DATA_LOADER = (
|
||||||
<Trans
|
<Trans
|
||||||
i18nKey="It appears that the connection to the node <0>{{VEGA_URL}}</0> does not return necessary data, try switching to another node."
|
i18nKey="It appears that the connection to the node <0>{{VEGA_URL}}</0> does not return necessary data, try switching to another node."
|
||||||
@ -118,7 +113,11 @@ export const Bootstrapper = ({ children }: { children: ReactNode }) => {
|
|||||||
skeleton={<Loading />}
|
skeleton={<Loading />}
|
||||||
failure={<Failure reason={t('Could not configure web3 provider')} />}
|
failure={<Failure reason={t('Could not configure web3 provider')} />}
|
||||||
>
|
>
|
||||||
|
{config ? (
|
||||||
<WalletProvider config={config}>{children}</WalletProvider>
|
<WalletProvider config={config}>{children}</WalletProvider>
|
||||||
|
) : (
|
||||||
|
<Failure reason={t('Could not configure the wallet provider')} />
|
||||||
|
)}
|
||||||
</Web3Provider>
|
</Web3Provider>
|
||||||
</DataLoader>
|
</DataLoader>
|
||||||
</NetworkLoader>
|
</NetworkLoader>
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
"Copy": "Copy",
|
"Copy": "Copy",
|
||||||
"Copy Market ID": "Copy Market ID",
|
"Copy Market ID": "Copy Market ID",
|
||||||
"Could not configure web3 provider": "Could not configure web3 provider",
|
"Could not configure web3 provider": "Could not configure web3 provider",
|
||||||
|
"Could not configure the wallet provider": "Could not configure the wallet provider",
|
||||||
"Could not initialize app": "Could not initialize app",
|
"Could not initialize app": "Could not initialize app",
|
||||||
"Countdown": "Countdown",
|
"Countdown": "Countdown",
|
||||||
"Create": "Create",
|
"Create": "Create",
|
||||||
|
Loading…
Reference in New Issue
Block a user