panorama/src-ts/main.tsx
Michael Zhang 4ec8018de6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
update
2023-07-18 18:21:15 -05:00

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>
);