refactor mylistings and my rentals
This commit is contained in:
@@ -15,8 +15,8 @@ import ItemDetail from './pages/ItemDetail';
|
||||
import EditItem from './pages/EditItem';
|
||||
import RentItem from './pages/RentItem';
|
||||
import CreateItem from './pages/CreateItem';
|
||||
import MyRentals from './pages/MyRentals';
|
||||
import MyListings from './pages/MyListings';
|
||||
import Renting from './pages/Renting';
|
||||
import Owning from './pages/Owning';
|
||||
import Profile from './pages/Profile';
|
||||
import PublicProfile from './pages/PublicProfile';
|
||||
import Messages from './pages/Messages';
|
||||
@@ -117,18 +117,18 @@ const AppContent: React.FC = () => {
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/my-rentals"
|
||||
path="/renting"
|
||||
element={
|
||||
<PrivateRoute>
|
||||
<MyRentals />
|
||||
<Renting />
|
||||
</PrivateRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/my-listings"
|
||||
path="/owning"
|
||||
element={
|
||||
<PrivateRoute>
|
||||
<MyListings />
|
||||
<Owning />
|
||||
</PrivateRoute>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user