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 {
|
||||
AppLoader,
|
||||
NetworkLoader,
|
||||
useEnvironment,
|
||||
useNodeSwitcherStore,
|
||||
@ -86,10 +85,6 @@ export const Bootstrapper = ({ children }: { children: ReactNode }) => {
|
||||
}));
|
||||
const config = useVegaWalletConfig();
|
||||
|
||||
if (!config) {
|
||||
return <AppLoader />;
|
||||
}
|
||||
|
||||
const ERR_DATA_LOADER = (
|
||||
<Trans
|
||||
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 />}
|
||||
failure={<Failure reason={t('Could not configure web3 provider')} />}
|
||||
>
|
||||
{config ? (
|
||||
<WalletProvider config={config}>{children}</WalletProvider>
|
||||
) : (
|
||||
<Failure reason={t('Could not configure the wallet provider')} />
|
||||
)}
|
||||
</Web3Provider>
|
||||
</DataLoader>
|
||||
</NetworkLoader>
|
||||
|
@ -66,6 +66,7 @@
|
||||
"Copy": "Copy",
|
||||
"Copy Market ID": "Copy Market ID",
|
||||
"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",
|
||||
"Countdown": "Countdown",
|
||||
"Create": "Create",
|
||||
|
Loading…
Reference in New Issue
Block a user