Files
nym/wallet/src/log.tsx
T
2024-07-18 12:37:30 +01:00

19 lines
505 B
TypeScript

import { createRoot } from 'react-dom/client';
import { ErrorBoundary } from 'react-error-boundary';
import { LogViewer } from './components/LogViewer';
import { ErrorFallback } from './components';
import { NymWalletTheme } from './theme';
const elem = document.getElementById('root-log');
if (elem) {
const root = createRoot(elem);
root.render(
<ErrorBoundary FallbackComponent={ErrorFallback}>
<NymWalletTheme>
<LogViewer />
</NymWalletTheme>
</ErrorBoundary>,
);
}