c66d7ed489
* Use new eslint rules and apply fixes. Use new logo component and shared theme + webpack config. * Add shared component to display a copy icon and copy to clipboard with confirmation state * Organise imports * Add copy mixnode identity key to list of mixnodes and detail view * Update nvm node version to 16 * Update GitHub Actions for Network Explorer to use yarn and yarn workspaces * Switch favicon for smaller N icon * Update README * Add error boundary
23 lines
727 B
TypeScript
23 lines
727 B
TypeScript
import * as React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { BrowserRouter as Router } from 'react-router-dom';
|
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
import { App } from './App';
|
|
import { MainContextProvider } from './context/main';
|
|
import './styles.css';
|
|
import { NetworkExplorerThemeProvider } from './theme';
|
|
import { ErrorBoundaryContent } from './errors/ErrorBoundaryContent';
|
|
|
|
ReactDOM.render(
|
|
<ErrorBoundary FallbackComponent={ErrorBoundaryContent}>
|
|
<MainContextProvider>
|
|
<NetworkExplorerThemeProvider>
|
|
<Router>
|
|
<App />
|
|
</Router>
|
|
</NetworkExplorerThemeProvider>
|
|
</MainContextProvider>
|
|
</ErrorBoundary>,
|
|
document.getElementById('app'),
|
|
);
|