File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { withStyles } from "@material-ui/styles";
4
4
import colors from "../constants/colors" ;
5
5
import Charts from "./Charts" ;
6
6
import DisplayTable from "./DisplayTable" ;
7
- import TinyCharts from "./TinyCharts" ;
8
7
import styles from "../styles/CovidAppStyles" ;
9
8
import axios from "axios" ;
10
9
import stateCodes from "../constants/stateCodes" ;
@@ -142,13 +141,8 @@ class CovidApp extends Component {
142
141
/>
143
142
</ div >
144
143
</ div >
145
- { /* <Barchart
146
- data={this.state.data}
147
- isLoading={this.state.isLoading}
148
- dataKey="confirmed"
149
- stroke={colors.red}
150
- /> */ }
151
144
< div className = { classes . chartArea } >
145
+ < Charts data = { this . state . data } isLoading = { this . state . isLoading } />
152
146
< div className = { classes . tinyChartArea } >
153
147
< div className = { classes . tinyChart } >
154
148
< div
@@ -207,7 +201,6 @@ class CovidApp extends Component {
207
201
</ div >
208
202
</ div >
209
203
</ div >
210
- < Charts data = { this . state . data } isLoading = { this . state . isLoading } />
211
204
</ div >
212
205
< div className = { classes . tableContainer } >
213
206
< h2 className = { classes . tableHeading } >
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export default {
5
5
display : "flex" ,
6
6
alignItems : "center" ,
7
7
} ,
8
+
8
9
heading : {
9
10
fontWeight : "500" ,
10
11
color : ( props ) =>
@@ -16,6 +17,7 @@ export default {
16
17
marginRight : "1rem" ,
17
18
} ,
18
19
} ,
20
+
19
21
content : {
20
22
backgroundColor : ( props ) => ( props . isDarkMode ? colors . darkPurple : "#fff" ) ,
21
23
borderRadius : "2rem" ,
@@ -25,17 +27,22 @@ export default {
25
27
flexDirection : "column" ,
26
28
justifyContent : "center" ,
27
29
} ,
30
+
28
31
contentArea : {
29
32
display : "flex" ,
30
33
} ,
34
+
31
35
mapArea : {
32
36
flex : "1" ,
33
37
} ,
38
+
34
39
chartArea : {
35
40
minWidth : "50%" ,
36
41
display : "flex" ,
37
42
justifyContent : "center" ,
43
+ flexDirection : "column" ,
38
44
} ,
45
+
39
46
tableContainer : {
40
47
padding : "2rem" ,
41
48
margin : "5rem 0" ,
@@ -50,14 +57,15 @@ export default {
50
57
tinyChartArea : {
51
58
display : "flex" ,
52
59
flexWrap : "wrap" ,
53
- padding : "2rem" ,
54
- justifyContent : "space-around " ,
60
+ padding : "2rem 2rem " ,
61
+ justifyContent : "space-evenly " ,
55
62
alignItems : "center" ,
56
- marginTop : "3rem " ,
63
+ marginTop : "5rem " ,
57
64
} ,
58
65
59
66
tinyChart : {
60
- margin : "2rem" ,
67
+ // width: "50%",
68
+ margin : "2.5rem" ,
61
69
"& h3" : {
62
70
textTransform : "capitalize" ,
63
71
fontWeight : 500 ,
@@ -67,9 +75,9 @@ export default {
67
75
} ,
68
76
69
77
tinych : {
70
- borderRadius : "2rem " ,
71
- marginBottom : "2rem " ,
72
- padding : "2rem " ,
78
+ borderRadius : ".5rem " ,
79
+ marginBottom : ".5rem " ,
80
+ padding : "1rem " ,
73
81
} ,
74
82
75
83
refreshIcon : {
You can’t perform that action at this time.
0 commit comments