Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Fix: Add footer to all pages (#2208)
Browse files Browse the repository at this point in the history
* Added footer to About page
* Added footer to State pages

Co-authored-by: Ayush Shukla <[email protected]>
  • Loading branch information
rtkg12 and shuklaayush authored Jul 6, 2020
1 parent b18aaa4 commit e13595c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
41 changes: 24 additions & 17 deletions src/components/About.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Footer from './Footer';

import React, {useState, useEffect} from 'react';
import {Helmet} from 'react-helmet';

Expand Down Expand Up @@ -29,30 +31,35 @@ function About(props) {
};

return (
<div className="About">
<React.Fragment>
<Helmet>
<title>FAQ - covid19india.org</title>
<meta
name="title"
content="Coronavirus Outbreak in India: Latest Map and Case Count"
/>
</Helmet>
{faq.map((faq, index) => {
return (
<div
key={index}
className="faq fadeInUp"
style={{animationDelay: `${0.5 + index * 0.1}s`}}
>
<h2 className="question">{faq.question}</h2>
<h2
className="answer"
dangerouslySetInnerHTML={{__html: faq.answer}}
></h2>
</div>
);
})}
</div>

<div className="About">
{faq.map((faq, index) => {
return (
<div
key={index}
className="faq fadeInUp"
style={{animationDelay: `${0.5 + index * 0.1}s`}}
>
<h2 className="question">{faq.question}</h2>
<h2
className="answer"
dangerouslySetInnerHTML={{__html: faq.answer}}
></h2>
</div>
);
})}
</div>

<Footer />
</React.Fragment>
);
}

Expand Down
3 changes: 3 additions & 0 deletions src/components/State.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import DeltaBarGraph from './DeltaBarGraph';
import Footer from './Footer';
import Level from './Level';
import MapSwitcher from './MapSwitcher';
import StateHeader from './StateHeader';
Expand Down Expand Up @@ -290,6 +291,8 @@ function State(props) {
</React.Fragment>
</div>
</div>

<Footer />
</React.Fragment>
);
}
Expand Down

0 comments on commit e13595c

Please sign in to comment.