Skip to content

Commit df14fbb

Browse files
committed
Footer link contributor established fix54
1 parent 421ec37 commit df14fbb

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/components/Footer/Footer.css

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
.info > a {
3232
color: #71b6f6;
3333
}
34+
.info .contributor {
35+
color: #71b6f6;
36+
text-decoration: underline;
37+
cursor: pointer;
38+
}
3439

3540
.copyright > p {
3641
color: #a3a9a4;

src/components/Footer/Footer.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import React from 'react';
22
import './Footer.css'
33
import WWCodeFrontEnd from '../../assets/images/WWCode-Logo.png'
4+
import { useHistory } from 'react-router-dom';
45

56

67
export default function Footer(){
8+
const history = useHistory();
9+
710
return(
811
<div className="footer">
912
<div className="footer-items">
@@ -42,6 +45,9 @@ export default function Footer(){
4245
<a href="https://www.womenwhocode.com/frontend"
4346
target="_blank"
4447
rel="noopener noreferrer">https://www.womenwhocode.com/frontend</a>
48+
49+
<p className="contributor" onClick={() => history.push('/contributor')}>contributors
50+
</p>
4551
</div>
4652
</div>
4753

src/components/Router.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import SingleResource from "./SingleResource/SingleResource";
88
import Contact from "./ContactUs/Contact";
99
import About from "./About/About";
1010
import TableView from "./Resources/TableView";
11-
import Bubblechart from "./Resources/Bubblechart";
1211
import GitApi from "./Api/GitApi";
1312

1413

@@ -24,8 +23,7 @@ const Router = () => (
2423
<Route exact path="/contact" component={Contact} />
2524
<Route exact path="/about" component={About} />
2625
<Route exact path="/TableView" component={TableView} />
27-
<Route exact path="/bubblechart" component={Bubblechart} />
28-
<Route exact path="/gitapi" component={GitApi} />
26+
<Route exact path="/contributor" component={GitApi} />
2927

3028
</Switch>
3129
<Footer/>

0 commit comments

Comments
 (0)