4272fefb0b
* Feat/807: ABI and classes for the contract methods * Feat/807: Added a new multisig-signer app * Feat/807: Added a new multisig-signer app * Feat/800: Untested signer forms * Feat/800: Moved reused bg video into ui-toolkit to use in multisig-signer project, and cleaned up some spacing that was overlooked in the stats theme changes * Feat/800: Componentised a bit, made the app look ok * Feat/800: Linting, prettifying, removing some unneeded tests, ensuring e2e tests run * Feat/800: Bit of translation * chore: fix type errors * chore: some parts error handling * feat: handle error and not found cases * feat: add changes to remove signer form as well * chore: rename component * chore: fix type issues * feat: add web3 connector logic * feat: allow disconnecting and show connected eth wallet info * Feat/800: Removed unused 'useApolloClient' * Feat/800: Ensure bundle.nonce and bundle.signatures have '0x' prepended * Feat/800: Removed unused e2e directory * Feat/800: Removed unnecessary app test * Feat/800: Removed unnecessary router * Feat/800: Capturing GQL errors in Sentry * Feat/800: Removing references to the unused e2e test directory * Feat/807: Consistent react hook imports * Feat/807: Removed unnecessary spreads Co-authored-by: Dexter <dexter.edwards93@gmail.com>
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
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';
|
|
import { createClient } from './lib/apollo-client';
|
|
|
|
function App() {
|
|
const [theme, toggleTheme] = useThemeSwitcher();
|
|
|
|
return (
|
|
<ThemeContext.Provider value={theme}>
|
|
<NetworkLoader createClient={createClient}>
|
|
<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;
|