Constants
1 year ago
Router
1 year ago
Theme
1 year ago
components
1 year ago
context
1 year ago
images
1 year ago
reducers
1 year ago
screens
1 year ago
skeleton
1 year ago
utils
1 year ago
App.js
1 year ago
index.js
1 year ago
App.js
27 lines
| 1 | import React from "react"; |
| 2 | import { HashRouter } from "react-router-dom"; |
| 3 | import { Container, ChakraProvider } from "@chakra-ui/react"; |
| 4 | import Theme from "./Theme/Theme"; |
| 5 | import Router from "./Router/Router"; |
| 6 | import { Header } from "./components"; |
| 7 | import dashboardReducer, { initialState } from "./reducers/DashboardReducer"; |
| 8 | |
| 9 | import { DashboardProvider } from "./context/DashboardContext"; |
| 10 | |
| 11 | const App = () => { |
| 12 | return ( |
| 13 | <DashboardProvider initialState={initialState} dashboardReducer={dashboardReducer}> |
| 14 | <HashRouter> |
| 15 | <ChakraProvider theme={Theme}> |
| 16 | <Header /> |
| 17 | <Container maxW="container.xl"> |
| 18 | <Router /> |
| 19 | </Container> |
| 20 | </ChakraProvider> |
| 21 | </HashRouter> |
| 22 | </DashboardProvider> |
| 23 | ); |
| 24 | }; |
| 25 | |
| 26 | export default App; |
| 27 |