mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-04 16:33:32 +00:00
Converted to Vite since create-react-app is no longer being developed
This commit is contained in:
27
frontend/src/main.tsx
Normal file
27
frontend/src/main.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import React from "react";
|
||||
|
||||
import { ColorModeScript } from "@chakra-ui/react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
|
||||
import App from "./App";
|
||||
import "./index.scss";
|
||||
import customTheme from "./theme/customTheme";
|
||||
|
||||
declare global {
|
||||
interface Function {
|
||||
Item: React.FC<any>;
|
||||
Link: React.FC<any>;
|
||||
Header: React.FC<any>;
|
||||
Main: React.FC<any>;
|
||||
Options: React.FC<any>;
|
||||
SubTitle: React.FC<any>;
|
||||
Title: React.FC<any>;
|
||||
}
|
||||
}
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<ColorModeScript initialColorMode={customTheme.config.initialColorMode} />
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
);
|
Reference in New Issue
Block a user