mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-01-01 13:08:09 +00:00
ffe95ee1c6
* Fix navbar not closing on mobile when it should * Get rid of unnecessary HTML tags
22 lines
487 B
TypeScript
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);
|
|
}
|