if-salas-web/src/index.js

52 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-05-25 17:40:26 +00:00
import React from 'react';
import ReactDOM from 'react-dom/client';
2022-06-23 15:39:25 +00:00
import 'dayjs/locale/pt-br'; // carregar sob demanda
import dayjs from 'dayjs';
2022-06-01 18:35:34 +00:00
import { BrowserRouter } from 'react-router-dom';
import { createTheme } from '@mui/material';
import { ThemeProvider } from '@mui/system';
import App from './app/App';
2022-05-25 17:40:26 +00:00
import reportWebVitals from './reportWebVitals';
2022-05-31 17:31:49 +00:00
import AppProviders from './context';
2022-06-01 00:43:42 +00:00
import './index.css';
2022-06-23 15:39:25 +00:00
dayjs.locale('pt-br');
2022-06-01 00:43:42 +00:00
const theme = createTheme({
palette: {
primary: {
main: '#32A041',
black: '#1C1C1C',
lightGray: '#8C8C8C',
mainBackground: '#EEEEEE',
2022-06-01 00:43:42 +00:00
},
secondary: {
main: '#00420C',
},
},
typography: {
fontFamily: ['Fira Code'].join(','),
},
});
2022-05-25 17:40:26 +00:00
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
2022-06-01 18:35:34 +00:00
<BrowserRouter>
<ThemeProvider theme={theme}>
<AppProviders>
<App />
</AppProviders>
</ThemeProvider>
</BrowserRouter>
2022-05-25 17:40:26 +00:00
</React.StrictMode>
);
// 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
reportWebVitals();