-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
27 lines (24 loc) · 981 Bytes
/
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
import React from 'react';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import Login from './screens/Login';
import Register from './screens/Register';
import Home from './screens/Home';
import CartPage from './screens/CartPage';
import OrderStatus from './screens/OrderStatus';
import CompleteOrder from './screens/CompleteOrder';
import PastOrders from './screens/PastOrders';
export default function App() {
return (
<Router>
<Routes>
<Route path="/login" element={<Login />} />
<Route path="/register" element={<Register />} />
<Route path="/home" element={<Home />} />
<Route path="/orderStatus" element={<OrderStatus />} />
<Route path="/cartpage" element={<CartPage />} />
<Route path="/completeorder" element={<CompleteOrder />} />
<Route path="/pastorders" element={<PastOrders />} />
</Routes>
</Router>
);
}