Changeset ee05663 for frontend/src
- Timestamp:
- 09/08/22 17:46:49 (2 years ago)
- Branches:
- master
- Children:
- 55ed171
- Parents:
- 16237c4
- Location:
- frontend/src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/App.js
r16237c4 ree05663 20 20 import CardPaymentScreen from "./screens/CardPaymentScreen"; 21 21 import OrderHistoryScreen from "./screens/OrderHistoryScreen"; 22 import ProfileScreen from "./screens/ProfileScreen"; 22 23 23 24 function App() { … … 40 41 <Route path="placeorder/payment" element={<CardPaymentScreen />} /> 41 42 <Route path="/orderhistory" element={<OrderHistoryScreen />} /> 43 <Route path="/profile" element={<ProfileScreen />} /> 42 44 <Route path="/order/:id" element={<OrderScreen />} /> 43 45 <Route path="/products" element={<CategoryScreen />} /> -
frontend/src/components/Header.js
r16237c4 ree05663 80 80 localStorage.removeItem("shippingAddress"); 81 81 localStorage.removeItem("paymentMethod"); 82 window.location.href = "/signin"; 82 83 }; 83 84 … … 547 548 548 549 <NavDropdown.Divider /> 549 < Link550 <NavDropdown.Item 550 551 className="drowdown-item" 551 552 to="#signout" … … 553 554 > 554 555 Одјави се 555 </ Link>556 </NavDropdown.Item> 556 557 </NavDropdown> 557 558 ) : ( -
frontend/src/screens/OrderHistoryScreen.js
r16237c4 ree05663 75 75 {orders.map((order) => ( 76 76 <tr key={order._id}> 77 <td>{order._id.substring(0, 6)}</td>77 <td>{order._id.substring(0, 7)}</td> 78 78 <td>{order.createdAt.substring(0, 10)}</td> 79 79 <td>{order.totalPrice.toFixed(2)}</td>
Note:
See TracChangeset
for help on using the changeset viewer.