2025-12-11 11:25:26 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
import ReactDOM from 'react-dom/client';
|
|
|
|
|
import App from './App';
|
2026-03-16 13:04:42 +01:00
|
|
|
import ErrorBoundary from './components/ErrorBoundary';
|
2026-06-12 12:44:12 +02:00
|
|
|
import { AuthGate } from './components/AuthGate';
|
2025-12-11 11:25:26 +01:00
|
|
|
|
|
|
|
|
const rootElement = document.getElementById('root');
|
|
|
|
|
if (!rootElement) {
|
|
|
|
|
throw new Error("Could not find root element to mount to");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const root = ReactDOM.createRoot(rootElement);
|
|
|
|
|
root.render(
|
2026-04-16 12:09:52 +02:00
|
|
|
<ErrorBoundary>
|
2026-06-12 12:44:12 +02:00
|
|
|
<AuthGate>
|
|
|
|
|
<App />
|
|
|
|
|
</AuthGate>
|
2026-04-16 12:09:52 +02:00
|
|
|
</ErrorBoundary>
|
2025-12-11 11:25:26 +01:00
|
|
|
);
|