-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathindex.jsx
30 lines (25 loc) · 910 Bytes
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react';
import ReactDOM from 'react-dom/client';
import axios from 'axios';
import dayjs from 'dayjs';
import 'dayjs/locale/ru';
import relativeTime from 'dayjs/plugin/relativeTime';
import calendar from 'dayjs/plugin/calendar';
import { App } from './app/App';
import { BASE_API_URL, LS_TOKEN_KEY } from './app/constants';
import '@toast-ui/editor/dist/toastui-editor.css';
import './assets/toast-ui-iqa-theme.css';
import 'bootstrap/dist/css/bootstrap-grid.min.css';
import '@ant-design/cssinjs';
import { GlobalProvider } from './app/GlobalProvider';
const root = ReactDOM.createRoot(document.getElementById('root'));
axios.defaults.baseURL = BASE_API_URL;
axios.defaults.headers.authorization = `Bearer ${localStorage.getItem(LS_TOKEN_KEY)}`;
dayjs.extend(relativeTime);
dayjs.extend(calendar);
dayjs.locale('ru');
root.render(
<GlobalProvider>
<App />
</GlobalProvider>
);