Last change
on this file since bc20307 was bc20307, checked in by Tasevski2 <39170279+Tasevski2@…>, 2 years ago |
Push before video
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[3a58bd6] | 1 | import React from 'react';
|
---|
| 2 | import ReactDOM from 'react-dom';
|
---|
| 3 | import './index.css';
|
---|
| 4 | import App from './App';
|
---|
| 5 | import reportWebVitals from './reportWebVitals';
|
---|
[bc20307] | 6 | import axios from 'axios';
|
---|
[3a58bd6] | 7 | import { BrowserRouter } from 'react-router-dom';
|
---|
| 8 | import { ThemeProvider } from 'styled-components';
|
---|
| 9 |
|
---|
| 10 | import { StyledEngineProvider } from '@mui/material/styles';
|
---|
| 11 | import theme from './theme/index';
|
---|
| 12 |
|
---|
[bc20307] | 13 | axios.defaults.headers.post['Content-Type'] = 'application/json';
|
---|
| 14 | axios.defaults.headers.post['Content-Type'] = 'application/json';
|
---|
| 15 | axios.defaults.headers.post['Access-Control-Allow-Origin'] = '*';
|
---|
| 16 | axios.defaults.headers.patch['Access-Control-Allow-Origin'] = '*';
|
---|
| 17 | axios.defaults.headers.delete['Access-Control-Allow-Origin'] = '*';
|
---|
[3a58bd6] | 18 |
|
---|
[bc20307] | 19 | ReactDOM.render(
|
---|
| 20 | <React.StrictMode>
|
---|
| 21 | <BrowserRouter>
|
---|
| 22 | <StyledEngineProvider injectFirst>
|
---|
| 23 | <ThemeProvider theme={theme}>
|
---|
| 24 | <App />
|
---|
| 25 | </ThemeProvider>
|
---|
| 26 | </StyledEngineProvider>
|
---|
| 27 | </BrowserRouter>
|
---|
| 28 | </React.StrictMode>,
|
---|
| 29 | document.getElementById('root')
|
---|
[3a58bd6] | 30 | );
|
---|
| 31 |
|
---|
| 32 | // If you want to start measuring performance in your app, pass a function
|
---|
| 33 | // to log results (for example: reportWebVitals(console.log))
|
---|
| 34 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
---|
| 35 | reportWebVitals();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.