fix(trading): remove the apploader from bootstrap (#6121)

This commit is contained in:
Art 2024-03-27 16:51:55 +01:00 committed by GitHub
parent e28cdb2463
commit 1e15032c06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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",