|
1 |
| -import React, { Component } from "react"; |
2 |
| -import { formatDistance } from "date-fns"; |
3 |
| -import Overview from "./Overview"; |
4 |
| -import { withStyles } from "@material-ui/styles"; |
5 |
| -import colors from "../constants/colors"; |
6 |
| -import Charts from "./Charts"; |
7 |
| -import DisplayTable from "./DisplayTable"; |
8 |
| -import styles from "../styles/CovidAppStyles"; |
9 |
| -import axios from "axios"; |
10 |
| -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
11 | 1 | import {
|
12 |
| - faSyncAlt, |
13 | 2 | faBell,
|
14 | 3 | faBellSlash,
|
| 4 | + faSyncAlt, |
15 | 5 | } from "@fortawesome/free-solid-svg-icons";
|
16 |
| -import "../styles/DarkModeButton.css"; |
17 |
| -import MapSection from "./MapSection"; |
18 |
| -import Barchart from "./Barchart"; |
19 |
| -import stateCodes from "../constants/stateCodes"; |
| 6 | +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
| 7 | +import { withStyles } from "@material-ui/styles"; |
| 8 | +import axios from "axios"; |
| 9 | +import { formatDistance } from "date-fns"; |
| 10 | +import React, { Component } from "react"; |
20 | 11 | import Lottie from "react-lottie";
|
21 | 12 | import * as animationData from "../assets/loading.json";
|
22 |
| -// import FadeIn from "react-fade-in"; |
| 13 | +import colors from "../constants/colors"; |
| 14 | +import stateCodes from "../constants/stateCodes"; |
| 15 | +import styles from "../styles/CovidAppStyles"; |
| 16 | +import "../styles/DarkModeButton.css"; |
| 17 | +import Barchart from "./Barchart"; |
| 18 | +import Charts from "./Charts"; |
| 19 | +import DisplayTable from "./DisplayTable"; |
23 | 20 | import Footer from "./Footer";
|
| 21 | +import MapSection from "./MapSection"; |
| 22 | +import Overview from "./Overview"; |
24 | 23 |
|
25 | 24 | const defaultOptions = {
|
26 | 25 | loop: true,
|
@@ -86,11 +85,8 @@ class CovidApp extends Component {
|
86 | 85 | axios.spread((...responses) => {
|
87 | 86 | const countryData = responses[0].data;
|
88 | 87 | const districtLevel = responses[1].data;
|
89 |
| - // const stateChanges = responses[2].data; |
90 | 88 | const updates = responses[3].data;
|
91 | 89 |
|
92 |
| - // console.log(countryData.statewise[0].lastupdatedtime); |
93 |
| - |
94 | 90 | const [todayData] = countryData.statewise.slice(0, 1);
|
95 | 91 | const casesTimeline = countryData.cases_time_series;
|
96 | 92 |
|
|
0 commit comments