diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index a3ec64f..c266822 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -52,6 +52,11 @@ function App() { return () => window.removeEventListener("resize", handleResize); }, []); + +useEffect(() => { + sendSessionDataToServer(); +}, []); + // Send verification code const sendVerificationCode = async (userData) => { try { diff --git a/frontend/src/components/Navbar.jsx b/frontend/src/components/Navbar.jsx index 711ad26..95d41c6 100644 --- a/frontend/src/components/Navbar.jsx +++ b/frontend/src/components/Navbar.jsx @@ -35,7 +35,7 @@ const Navbar = ({ onLogout, userName }) => { alt="Campus Plug" className="h-8 px-2" /> - + Campus Plug @@ -48,7 +48,7 @@ const Navbar = ({ onLogout, userName }) => { @@ -57,7 +57,7 @@ const Navbar = ({ onLogout, userName }) => { @@ -70,7 +70,7 @@ const Navbar = ({ onLogout, userName }) => { {/* Favorites Button */} diff --git a/frontend/src/components/ProductForm.jsx b/frontend/src/components/ProductForm.jsx index f594d24..9885d07 100644 --- a/frontend/src/components/ProductForm.jsx +++ b/frontend/src/components/ProductForm.jsx @@ -1,4 +1,5 @@ import React, { useState } from "react"; +import { X, ChevronLeft, Plus, Trash2 } from "lucide-react"; const ProductForm = ({ editingProduct, @@ -50,63 +51,64 @@ const ProductForm = ({ }; return ( -
+
{/* Back Button */} -

+

{editingProduct?.id ? "Edit Your Product" : "List a New Product"}

-
+
{/* Product Name */}
-
{/* Price */}
-
- {/* Categories - Dropdown with Add button */} + {/* Categories */}
-