doc: add login component for login route
This commit is contained in:
1 parent
a8fc9bdfad
commit
0a885395e4
1 file changed
+4
@@ -5,6 +5,7 @@ import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
|
|||||||
import Header from "./Header/Header";
|
import Header from "./Header/Header";
|
||||||
import Home from "./Home/Home";
|
import Home from "./Home/Home";
|
||||||
import Checkout from "./Checkout/Checkout";
|
import Checkout from "./Checkout/Checkout";
|
||||||
|
import Login from "./Auth/Login";
|
||||||
|
|
||||||
import "./App.css";
|
import "./App.css";
|
||||||
|
|
||||||
@@ -13,6 +14,9 @@ function App() {
|
|||||||
<Router>
|
<Router>
|
||||||
<section className="app">
|
<section className="app">
|
||||||
<Switch>
|
<Switch>
|
||||||
|
<Route path="/login">
|
||||||
|
<Login />
|
||||||
|
</Route>
|
||||||
<Route path="/checkout">
|
<Route path="/checkout">
|
||||||
<Header />
|
<Header />
|
||||||
<Checkout />
|
<Checkout />
|
||||||
|
|||||||
Reference in new issue
Block a user