Skip to content

Commit f883969

Browse files
authored
Revert "Feat: Page in between the github transition "
1 parent 6452c59 commit f883969

File tree

6 files changed

+2131
-2452
lines changed

6 files changed

+2131
-2452
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"react-dom": "^16.13.1",
1111
"react-particles-js": "^3.5.3",
1212
"react-redux": "^7.2.1",
13-
"react-router-dom": "^5.3.4",
13+
"react-router-dom": "^5.2.0",
1414
"react-scripts": "^3.4.4",
1515
"react-spinners": "^0.11.0",
1616
"react-springy-parallax": "^1.3.0",

src/Main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import HomePage from './components/home/HomePage';
44
import HomeComponent from './components/welcome/HomeComponent.js';
55
import HashLoader from 'react-spinners/HashLoader';
66
import './Main.css';
7-
import Algorithm from './components/algorithm/Algorithm';
87

98
function App() {
109
const [loading, setLoading] = useState(false);
@@ -27,7 +26,6 @@ function App() {
2726
{/* <Route exact path="/" component={HomePage}></Route> */}
2827
<Route exact path="/" component={HomeComponent}></Route>
2928
<Route className="homepage" exact path="/home" component={HomePage}></Route>
30-
<Route path="/algorithm/:name" component={Algorithm} />
3129
</Switch>
3230
)}
3331
</div>

src/components/algorithm/Algorithm.css

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/components/algorithm/Algorithm.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/components/home/HomePage.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState, useEffect } from 'react';
22
import './HomePage.css';
33
import axios from 'axios';
4-
import {Link} from "react-router-dom";
54

65
const HomePage = () => {
76
const [data, setData] = useState(null);
@@ -31,9 +30,9 @@ const HomePage = () => {
3130
if (val) {
3231
list = val.map((item) => {
3332
return (
34-
<Link key={item.sha} to={`algorithm/${item.name}`}>
33+
<a key={item.sha} href={item.html_url}>
3534
<li key={item.sha}>{item.name}</li>
36-
</Link>
35+
</a>
3736
);
3837
});
3938
}

0 commit comments

Comments
 (0)