Skip to content

Commit

Permalink
Added support for patients db. (covid19india#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic authored and jeremyphilemon committed Mar 31, 2020
1 parent aad6122 commit 54b9de0
Show file tree
Hide file tree
Showing 8 changed files with 742 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module.exports = {
'prettier/prettier': 'error',
'no-invalid-this': 0,
'react/prop-types': 0,
'react-hooks/rules-of-hooks': 0,
'react-hooks/exhaustive-deps': 0,
'react-hooks/rules-of-hooks': 'warn',
'react-hooks/exhaustive-deps': 'error',
},
settings: {
react: {
Expand Down
105 changes: 105 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@
"private": true,
"homepage": "http://covid19india.github.io/",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@fortawesome/react-fontawesome": "^0.1.9",
"axios": "^0.19.2",
"d3": "^5.15.0",
"d3-svg-legend": "^2.25.6",
"date-fns": "^2.11.0",
"install": "^0.13.0",
"json2csv": "^5.0.0",
"node-sass": "^4.13.1",
"npm": "^6.14.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-feather": "^2.0.3",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.0",
"react-table": "^7.0.0",
"sass-lint": "^1.13.1",
"react-table": "^7.0.0",
"topojson": "^3.0.2"
},
"scripts": {
Expand Down
16 changes: 12 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,48 @@ import {
import * as Icon from 'react-feather';

import './App.scss';

import Home from './components/home';
import Navbar from './components/navbar';
import Links from './components/links';
import Cluster from './components/cluster';
import FAQ from './components/faq';
import Banner from './components/banner';
/* import PatientDB from './components/patientdb';*/

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

function App() {
// Add a new page simply by adding a new entry in this array.
const pages = [
{
pageLink: '/',
view: Home,
displayName: 'Home',
animationDelayForNavbar: 0.2,
},
/* {
pageLink: '/patientsDB',
view: PatientDB,
displayName: 'Patients DB',
animationDelayForNavbar: 0.3,
},*/
{
pageLink: '/clusters',
view: Cluster,
displayName: 'Clusters',
animationDelayForNavbar: 0.3,
animationDelayForNavbar: 0.4,
},
{
pageLink: '/links',
view: Links,
displayName: 'Helpful Links',
animationDelayForNavbar: 0.4,
animationDelayForNavbar: 0.5,
},
{
pageLink: '/faq',
view: FAQ,
displayName: 'FAQ',
animationDelayForNavbar: 0.4,
animationDelayForNavbar: 0.6,
},
];

Expand Down Expand Up @@ -71,6 +78,7 @@ function App() {
)}
/>
</Router>

<footer className="fadeInUp" style={{animationDelay: '2s'}}>
<img
src="/icon.png"
Expand Down
Loading

0 comments on commit 54b9de0

Please sign in to comment.