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

* fix broken tooltips, replace react-tooltip with react-popper-tooltip * make tooltips use ExternalLink component * fix import * get rid of unused import * fix(tooltip): set delayHide * removed unecessary comment * fix tooltip on mobile * stop tooltip label propagation (mainly for mobile devices) * added onClick convenience prop for label component wrapper (since onClick isn't propagated down) --------- Co-authored-by: soup <soup@r4tio.dev>
33 lines
816 B
TypeScript
33 lines
816 B
TypeScript
/*
|
|
* Copyright (c) 2021 - 2023, Ludvig Lundgren and the autobrr contributors.
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import { Buffer } from "buffer";
|
|
|
|
import "./index.css";
|
|
|
|
import { App } from "./App";
|
|
import { InitializeGlobalContext } from "./utils/Context";
|
|
|
|
declare global {
|
|
interface Window { APP: APP; }
|
|
}
|
|
|
|
window.APP = window.APP || {};
|
|
// Apparently Stacktracey requires this for some weird reason
|
|
// (at least in local dev env)
|
|
window.Buffer = Buffer;
|
|
|
|
// 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>
|
|
);
|