@@ -14,51 +11,31 @@ const Home = () => {
Buy and sell robots and robot parts
-
- navigate(`/listings`)}>
+
+ navigate(`/listings`)}
+ className="text-center"
+ bg="secondary"
+ >
Browse Listings
- Buy and sell robots or robot parts
+ Browse existing Robolist listings
+
+
+
+
+ navigate(`/listings/add`)}
+ className="text-center"
+ bg="primary"
+ >
+
+ Create Listing
+ List your robot on Robolist
-
- {isAuthenticated && (
- <>
-
-
- {
- navigate("/listings/me/1");
- }}
- >
- View My Listings
-
-
-
-
- {
- navigate("/listings/add");
- }}
- >
- Make a Listing
-
-
-
- >
- )}
);
};
diff --git a/frontend/src/pages/Listings.tsx b/frontend/src/pages/Listings.tsx
index b4c347fb..e9970028 100644
--- a/frontend/src/pages/Listings.tsx
+++ b/frontend/src/pages/Listings.tsx
@@ -1,46 +1,30 @@
+import ListingGrid from "components/listings/ListingGrid";
import { SearchInput } from "components/ui/Search/SearchInput";
-import { paths } from "gen/api";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useEffect, useState } from "react";
-import {
- Breadcrumb,
- Card,
- Col,
- Container,
- Row,
- Spinner,
-} from "react-bootstrap";
-import Markdown from "react-markdown";
-import { Link, useNavigate, useParams } from "react-router-dom";
-
-type ListingsType =
- paths["/listings/search"]["get"]["responses"][200]["content"]["application/json"]["listings"];
+import { Breadcrumb } from "react-bootstrap";
+import { useNavigate, useParams } from "react-router-dom";
const Listings = () => {
const auth = useAuthentication();
- const [partsData, setListings] = useState