[INIT] Initial Project Structure
This commit is contained in:
commit
0fc5f05b6a
105 changed files with 10448 additions and 0 deletions
27
src/App.tsx
Normal file
27
src/App.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { ReactNode } from "react";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import { ChakraProvider } from "@chakra-ui/react";
|
||||
import useInitHooks from "@src/hooks/init-hooks";
|
||||
import theme from "@src/util/theme";
|
||||
import { AuthProvider } from "@src/ctx/AuthContext";
|
||||
import "react-toastify/dist/ReactToastify.css";
|
||||
import Viewport from "./Viewport";
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<ChakraProvider theme={theme}>
|
||||
<BrowserRouter>
|
||||
<AuthProvider>
|
||||
<InitProvider>
|
||||
<Viewport />
|
||||
</InitProvider>
|
||||
</AuthProvider>
|
||||
</BrowserRouter>
|
||||
</ChakraProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function InitProvider(props: { children: ReactNode }) {
|
||||
useInitHooks();
|
||||
return props.children;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue