File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import HomePage from './HomePage' ;
8
8
import AboutPage from './AboutPage' ;
9
+ import LoginPage from './LoginPage' ;
9
10
import RestaurantsPage from './RestaurantsPage' ;
10
11
import RestaurantPage from './RestaurantPage' ;
11
12
import NotFoundPage from './NotFoundPage' ;
@@ -21,6 +22,7 @@ export default function App() {
21
22
< Switch >
22
23
< Route exact path = "/" component = { HomePage } />
23
24
< Route path = "/about" component = { AboutPage } />
25
+ < Route path = "/login" component = { LoginPage } />
24
26
< Route exact path = "/restaurants" component = { RestaurantsPage } />
25
27
< Route path = "/restaurants/:id" component = { RestaurantPage } />
26
28
< Route component = { NotFoundPage } />
Original file line number Diff line number Diff line change
1
+ export default function LoginPage ( ) {
2
+ return (
3
+ < div >
4
+ < h2 > Login</ h2 >
5
+ </ div >
6
+ ) ;
7
+ }
You can’t perform that action at this time.
0 commit comments