lemmy-ui/src/client/index.tsx
SleeplessOne1917 ffe95ee1c6
Navbar hide menu fix (#1033)
* Fix navbar not closing on mobile when it should

* Get rid of unnecessary HTML tags
2023-05-21 23:31:08 -04:00

22 lines
487 B
TypeScript

import { hydrate } from "inferno-hydrate";
import { BrowserRouter } from "inferno-router";
import { App } from "../shared/components/app/app";
import { initializeSite } from "../shared/utils";
import "bootstrap/js/dist/collapse";
import "bootstrap/js/dist/dropdown";
const site = window.isoData.site_res;
initializeSite(site);
const wrapper = (
<BrowserRouter>
<App />
</BrowserRouter>
);
const root = document.getElementById("root");
if (root) {
hydrate(wrapper, root);
}