Skip to content

Commit

Permalink
route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bkosm committed Dec 8, 2020
1 parent ec9f57b commit 5a71ab6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"homepage": "http://bart-kosmala.github.io/Fakers",
"homepage": "http://bart-kosmala.github.io/fakers",
"name": "fakerweb",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.5",
Expand Down
22 changes: 11 additions & 11 deletions client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import React from 'react';
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom';
import './App.css';
import Home from './Pages/Home';
import Info from './Pages/Info';
import Graph from './Pages/Graph';
import NavBarContainer from './Components/NavBarContainer';
import React from "react";
import { Route, BrowserRouter as Router, Switch } from "react-router-dom";
import "./App.css";
import Home from "./Pages/Home";
import Info from "./Pages/Info";
import Graph from "./Pages/Graph";
import NavBarContainer from "./Components/NavBarContainer";

function App() {
return (
<div className='App'>
<div className="App">
<Router>
<NavBarContainer />
<Switch>
<Route exact path='/Fakers' component={Home} />
<Route path='/Info' component={Info} />
<Route path='/Graph' component={Graph} />
<Route exact path="/fakers" component={Home} />
<Route path="/info" component={Info} />
<Route path="/graph" component={Graph} />
</Switch>
</Router>
</div>
Expand Down
6 changes: 3 additions & 3 deletions client/src/Components/NavBarContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const NavBarContainer = () => {
>
<NavItem
icon={<img className="navitemicon" src={HomeIcon} alt="home-icon" />}
to={"/"}
to={"/fakers"}
/>
<NavItem
icon={<img className="navitemicon" src={GitHub} alt="logo" />}
Expand All @@ -44,11 +44,11 @@ const NavBarContainer = () => {
/>
<NavItem
icon={<img className="navitemicon" src={DataBase} alt="logo" />}
to={"/Graph"}
to={"/graph"}
/>
<NavItem
icon={<img className="navitemicon" src={InfoLogo} alt="logo" />}
to={"/Info"}
to={"/info"}
/>
</NavBar>
</>
Expand Down

0 comments on commit 5a71ab6

Please sign in to comment.