From f4d6d3e0a8219c0955760b0f5f43249bc2cbb736 Mon Sep 17 00:00:00 2001 From: Aryan Bhasin Date: Fri, 29 Apr 2022 14:53:30 -0400 Subject: [PATCH] Adds zero-state UI for My Rentals --- frontend/src/client/App.tsx | 2 + frontend/src/client/components/Navbar.tsx | 3 ++ frontend/src/client/pages/Rentals.tsx | 45 +++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 frontend/src/client/pages/Rentals.tsx diff --git a/frontend/src/client/App.tsx b/frontend/src/client/App.tsx index 291e01f..66fe0cc 100644 --- a/frontend/src/client/App.tsx +++ b/frontend/src/client/App.tsx @@ -8,6 +8,7 @@ import WalletProvider from "./components/WalletProvider"; import Main from "./pages/Main"; import Create from "./pages/Create"; import Find from "./pages/Find"; +import Rentals from "./pages/Rentals"; import About from "./pages/About"; import { ContextWrapper } from "./Context"; @@ -19,6 +20,7 @@ export const App = () => { } /> } /> } /> + } /> } /> diff --git a/frontend/src/client/components/Navbar.tsx b/frontend/src/client/components/Navbar.tsx index cf0da87..3aaa2f9 100644 --- a/frontend/src/client/components/Navbar.tsx +++ b/frontend/src/client/components/Navbar.tsx @@ -19,6 +19,9 @@ export const Navbar = () => {
Find
+
+ My Rentals +
About
diff --git a/frontend/src/client/pages/Rentals.tsx b/frontend/src/client/pages/Rentals.tsx new file mode 100644 index 0000000..ed4d029 --- /dev/null +++ b/frontend/src/client/pages/Rentals.tsx @@ -0,0 +1,45 @@ +import React from "react"; +import { Link } from "react-router-dom"; +import { Navbar } from "../components/Navbar"; +import { Footer } from "../components/Footer"; + +const Rentals = () => { + return ( +
+ + + +
+
+
+
+ ); +} + +const MyListingsView = () => { + return ( +
+

My Listings

+ {/* TODO: Check if user has listed NFTs */} +

You haven't listed any NFTs!

+
+ List a Rental +
+
+ ); +} + +const MyRentalsView = () => { + return ( +
+

My Rentals

+ {/* TODO: Check if user has rented NFTs */} +

You haven't rented any NFTs!

+
+ Explore Current Rentals! +
+
+ ); +} + +export default Rentals; \ No newline at end of file