Michael Zhang
4ec8018de6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
27 lines
587 B
TypeScript
27 lines
587 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import App from "./App";
|
|
import "./styles.css";
|
|
import {
|
|
ChakraProvider,
|
|
ColorModeProvider,
|
|
ThemeConfig,
|
|
ThemeProvider,
|
|
extendBaseTheme,
|
|
extendTheme,
|
|
} from "@chakra-ui/react";
|
|
|
|
const config: ThemeConfig = {
|
|
initialColorMode: "system",
|
|
useSystemColorMode: true,
|
|
};
|
|
|
|
const theme = extendBaseTheme({ config });
|
|
|
|
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
|
<React.StrictMode>
|
|
<ChakraProvider theme={theme}>
|
|
<App />
|
|
</ChakraProvider>
|
|
</React.StrictMode>
|
|
);
|