-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
71 lines (64 loc) · 1.58 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import Header from './components/Layout/Header';
import React from 'react';
import Products from './components/Products';
import { Switch, Route } from 'react-router-dom';
import Product from './components/Product';
import Cart from './components/Cart';
import Checkout from './components/Checkout';
import Signin from './components/Signin';
import Account from './components/Account';
import Footer from './components/Layout/Footer';
import Order from './components/Order'
import Payment from './components/Payment';
import OrderSuccess from './components/OrderSuccess';
import OrderHistory from './components/OrderHistory';
import EditProfile from './components/EditProfile';
function App() {
return (
<>
<Header />
<Switch>
<Route path='/profile/edit'>
<EditProfile/>
</Route>
<Route path="/orders/history" exact>
<OrderHistory/>
</Route>
<Route path="/order/:id/success" exact>
<OrderSuccess />
</Route>
<Route path="/order/:id" exact>
<Payment />
</Route>
<Route path="/cart/checkout/order" exact>
<Order />
</Route>
<Route path="/customer/account" exact>
<Account />
</Route>
<Route path="/signin" exact>
<Signin />
</Route>
<Route path="/cart/checkout" exact>
<Checkout />
</Route>
<Route path="/cart" exact>
<Cart />
</Route>
<Route path="/" exact>
<Products />
</Route>
<Route path="/:id" exact>
<Product />
</Route>
</Switch>
<Footer />
</>
);
}
export default App;
//<Products />
/*<Route to="/product">
<Product />
</Route> */
/* */