Skip to content

Commit 54b9de0

Browse files
tecoholicjeremyphilemon
authored andcommitted
Added support for patients db. (covid19india#331)
1 parent aad6122 commit 54b9de0

8 files changed

+742
-25
lines changed

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ module.exports = {
2222
'prettier/prettier': 'error',
2323
'no-invalid-this': 0,
2424
'react/prop-types': 0,
25-
'react-hooks/rules-of-hooks': 0,
26-
'react-hooks/exhaustive-deps': 0,
25+
'react-hooks/rules-of-hooks': 'warn',
26+
'react-hooks/exhaustive-deps': 'error',
2727
},
2828
settings: {
2929
react: {

package-lock.json

+105
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,25 @@
44
"private": true,
55
"homepage": "http://covid19india.github.io/",
66
"dependencies": {
7+
"@fortawesome/fontawesome-svg-core": "^1.2.28",
8+
"@fortawesome/free-solid-svg-icons": "^5.13.0",
9+
"@fortawesome/react-fontawesome": "^0.1.9",
710
"axios": "^0.19.2",
811
"d3": "^5.15.0",
912
"d3-svg-legend": "^2.25.6",
1013
"date-fns": "^2.11.0",
1114
"install": "^0.13.0",
15+
"json2csv": "^5.0.0",
1216
"node-sass": "^4.13.1",
1317
"npm": "^6.14.3",
1418
"react": "^16.13.1",
1519
"react-dom": "^16.13.1",
1620
"react-feather": "^2.0.3",
1721
"react-router-dom": "^5.1.2",
1822
"react-scripts": "3.4.0",
23+
"react-table": "^7.0.0",
1924
"sass-lint": "^1.13.1",
25+
"react-table": "^7.0.0",
2026
"topojson": "^3.0.2"
2127
},
2228
"scripts": {

src/App.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,48 @@ import {
88
import * as Icon from 'react-feather';
99

1010
import './App.scss';
11+
1112
import Home from './components/home';
1213
import Navbar from './components/navbar';
1314
import Links from './components/links';
1415
import Cluster from './components/cluster';
1516
import FAQ from './components/faq';
1617
import Banner from './components/banner';
18+
/* import PatientDB from './components/patientdb';*/
1719

1820
const history = require('history').createBrowserHistory;
1921

2022
function App() {
21-
// Add a new page simply by adding a new entry in this array.
2223
const pages = [
2324
{
2425
pageLink: '/',
2526
view: Home,
2627
displayName: 'Home',
2728
animationDelayForNavbar: 0.2,
2829
},
30+
/* {
31+
pageLink: '/patientsDB',
32+
view: PatientDB,
33+
displayName: 'Patients DB',
34+
animationDelayForNavbar: 0.3,
35+
},*/
2936
{
3037
pageLink: '/clusters',
3138
view: Cluster,
3239
displayName: 'Clusters',
33-
animationDelayForNavbar: 0.3,
40+
animationDelayForNavbar: 0.4,
3441
},
3542
{
3643
pageLink: '/links',
3744
view: Links,
3845
displayName: 'Helpful Links',
39-
animationDelayForNavbar: 0.4,
46+
animationDelayForNavbar: 0.5,
4047
},
4148
{
4249
pageLink: '/faq',
4350
view: FAQ,
4451
displayName: 'FAQ',
45-
animationDelayForNavbar: 0.4,
52+
animationDelayForNavbar: 0.6,
4653
},
4754
];
4855

@@ -71,6 +78,7 @@ function App() {
7178
)}
7279
/>
7380
</Router>
81+
7482
<footer className="fadeInUp" style={{animationDelay: '2s'}}>
7583
<img
7684
src="/icon.png"

0 commit comments

Comments
 (0)