mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 09:49:13 +00:00

* Started refactoring codebase for React 18. * Migrated to react-router v6 fully * Removed useless test setup along with relevant packages. * Removed leftover console.log statement * feat: use status forbidden for onboarding * refactor(web): use react hook form on login * fix: comply with r18 shenanigans * chore: update packages
25 lines
No EOL
577 B
TypeScript
25 lines
No EOL
577 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
|
|
import "@fontsource/inter/variable.css";
|
|
import "./index.css";
|
|
|
|
import { App } from "./App";
|
|
import { InitializeGlobalContext } from "./utils/Context";
|
|
|
|
declare global {
|
|
interface Window { APP: APP; }
|
|
}
|
|
|
|
window.APP = window.APP || {};
|
|
|
|
// Initializes auth and theme contexts
|
|
InitializeGlobalContext();
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
const root = createRoot(document.getElementById("root")!);
|
|
root.render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>
|
|
); |