File tree Expand file tree Collapse file tree 3 files changed +1
-17
lines changed
app/javascript/packs/components Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { BrowserRouter as Router, Route } from 'react-router-dom';
3
3
4
4
import Header from './Header' ;
5
5
import Root from './Root' ;
6
- import Home from './Home' ;
7
6
import User from './User' ;
8
7
import UserDetails from './UserDetails' ;
9
8
@@ -15,7 +14,6 @@ class App extends React.Component {
15
14
< Header />
16
15
17
16
< Route exact path = "/" component = { Root } />
18
- < Route exact path = "/home" component = { Home } />
19
17
< Route exact path = "/users" component = { User } />
20
18
< Route exact path = "/users/:id/:name" component = { UserDetails } />
21
19
</ div >
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ const Header = () => (
6
6
< div className = "container" >
7
7
< div className = "navbar-header" >
8
8
< ul className = "nav navbar-nav" >
9
- < li > < Link to = "/" href > Root</ Link > </ li >
10
- < li > < Link to = "/home" href > Home</ Link > </ li >
9
+ < li > < Link to = "/" href > Home</ Link > </ li >
11
10
< li > < Link to = "/users" href > User</ Link > </ li >
12
11
< li > < Link to = "/games" href > Game</ Link > </ li >
13
12
</ ul >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments