mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-03 02:08:12 -05:00
29 lines
578 B
TypeScript
29 lines
578 B
TypeScript
|
import React from "react";
|
||
|
|
||
|
import { ColorModeScript } from "@chakra-ui/react";
|
||
|
import ReactDOM from "react-dom";
|
||
|
|
||
|
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.render(
|
||
|
<>
|
||
|
<ColorModeScript initialColorMode={customTheme.config.initialColorMode} />
|
||
|
<App />
|
||
|
</>,
|
||
|
document.getElementById("root"),
|
||
|
);
|