2021-07-14 12:20:04 +00:00
|
|
|
import React, { StrictMode } from "react";
|
|
|
|
import ReactDOM from "react-dom";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2021-08-11 11:23:59 +00:00
|
|
|
import { App } from "./App";
|
2022-04-27 15:29:57 +00:00
|
|
|
import { initAdminClient } from "./context/auth/AdminClient";
|
|
|
|
import { initI18n } from "./i18n";
|
|
|
|
|
|
|
|
import "./index.css";
|
|
|
|
|
|
|
|
// Hot Module Replacement (HMR) - Remove this snippet to remove HMR.
|
|
|
|
// Learn more: https://snowpack.dev/concepts/hot-module-replacement
|
|
|
|
if (import.meta.hot) {
|
|
|
|
import.meta.hot.accept();
|
|
|
|
}
|
|
|
|
|
|
|
|
async function initialize() {
|
|
|
|
const adminClient = await initAdminClient();
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2022-04-27 15:29:57 +00:00
|
|
|
await initI18n(adminClient);
|
2020-11-12 12:55:52 +00:00
|
|
|
|
2021-07-14 12:20:04 +00:00
|
|
|
ReactDOM.render(
|
|
|
|
<StrictMode>
|
2021-08-11 11:23:59 +00:00
|
|
|
<App adminClient={adminClient} />
|
2021-07-14 12:20:04 +00:00
|
|
|
</StrictMode>,
|
2020-09-01 14:51:59 +00:00
|
|
|
document.getElementById("app")
|
2020-08-04 12:59:41 +00:00
|
|
|
);
|
2021-07-14 12:17:57 +00:00
|
|
|
}
|
2022-04-27 15:29:57 +00:00
|
|
|
|
|
|
|
initialize();
|