dccc750154
* fix: timeout data node requests for node switcher * chore: generate apollo client library * chore: migrate console lite to use new apollo client package * chore: migrate explorer across * chore: remove completely unused file * chore: migrate stats * chore: migrate trading * chore: migrate multisigner app * chore: migrate token over * chore: final migrations * test: adjust tests for new behaviour * fix: build script * Update libs/apollo-client/src/lib/apollo-client.ts * chore: fix conflicts * fix: cache * test: setup mocks before each test * style: lint * style: lint * chore: resolve conflicts * test: fix tests
33 lines
990 B
TypeScript
33 lines
990 B
TypeScript
import { EnvironmentProvider, NetworkLoader } from '@vegaprotocol/environment';
|
|
import { Header } from './components/header';
|
|
import { StatsManager } from '@vegaprotocol/network-stats';
|
|
import { ThemeContext } from '@vegaprotocol/react-helpers';
|
|
import { useThemeSwitcher } from '@vegaprotocol/react-helpers';
|
|
|
|
function App() {
|
|
const [theme, toggleTheme] = useThemeSwitcher();
|
|
|
|
return (
|
|
<ThemeContext.Provider value={theme}>
|
|
<NetworkLoader>
|
|
<div className="w-screen min-h-screen grid pb-6 bg-white text-neutral-900 dark:bg-black dark:text-neutral-100">
|
|
<div className="layout-grid w-screen justify-self-center">
|
|
<Header theme={theme} toggleTheme={toggleTheme} />
|
|
<StatsManager className="max-w-3xl px-6" />
|
|
</div>
|
|
</div>
|
|
</NetworkLoader>
|
|
</ThemeContext.Provider>
|
|
);
|
|
}
|
|
|
|
const Wrapper = () => {
|
|
return (
|
|
<EnvironmentProvider>
|
|
<App />
|
|
</EnvironmentProvider>
|
|
);
|
|
};
|
|
|
|
export default Wrapper;
|