-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
36 lines (33 loc) · 1.24 KB
/
index.tsx
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
31
32
33
34
35
36
import React from 'react';
import ReactDOM from 'react-dom';
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
import reportWebVitals from './reportWebVitals';
import './index.css';
import App from './App';
import 'fontsource-roboto';
import { Provider } from "react-redux";
import store from "./redux/store";
import Amplify, { API, Interactions } from "aws-amplify";
import { IAwsConfig } from './types/awsconfig'
import awsConfig from './aws_config'
//declare var awsConfig: IAwsConfig;
Amplify.configure(awsConfig);
API.configure(awsConfig)
Interactions.configure(awsConfig)
//Amplify.Logger.LOG_LEVEL = 'DEBUG'
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<App />
</Provider>
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://cra.link/PWA
serviceWorkerRegistration.register();
// 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();