remnantchat/src/index.tsx

33 lines
949 B
TypeScript
Raw Normal View History

2022-08-09 01:04:04 +00:00
import ReactDOM from 'react-dom/client'
2022-08-10 02:28:46 +00:00
import { BrowserRouter as Router } from 'react-router-dom'
2022-08-10 02:41:39 +00:00
import { ThemeProvider, createTheme } from '@mui/material/styles'
import CssBaseline from '@mui/material/CssBaseline'
2022-08-16 14:21:33 +00:00
import * as serviceWorkerRegistration from 'serviceWorkerRegistration'
import 'index.sass'
import Bootstrap from 'Bootstrap'
import reportWebVitals from 'reportWebVitals'
2022-08-09 01:04:04 +00:00
2022-08-10 02:41:39 +00:00
const darkTheme = createTheme({
palette: {
mode: 'dark',
},
})
2022-08-09 02:04:37 +00:00
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
2022-08-13 17:11:59 +00:00
<ThemeProvider theme={darkTheme}>
<CssBaseline />
<Router>
<Bootstrap />
</Router>
</ThemeProvider>
2022-08-09 01:04:04 +00:00
)
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
2022-08-09 02:04:37 +00:00
reportWebVitals()
2022-08-09 02:51:55 +00:00
serviceWorkerRegistration.register()