26 lines
639 B
TypeScript
26 lines
639 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import { applyNodedcTheme } from "@nodedc/ui-core";
|
|
import "@nodedc/tokens/tokens.css";
|
|
import "@nodedc/tokens/themes.css";
|
|
import "@nodedc/ui-core/styles.css";
|
|
|
|
import App from "./App";
|
|
import "./styles.css";
|
|
|
|
const rootElement = document.getElementById("root");
|
|
|
|
if (!rootElement) {
|
|
throw new Error("K1 console root element is missing.");
|
|
}
|
|
|
|
rootElement.classList.add("nodedc-ui-root");
|
|
rootElement.dataset.nodedcUi = "";
|
|
applyNodedcTheme(rootElement, { theme: "dark" });
|
|
|
|
createRoot(rootElement).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|