diff --git a/backend/db.sqlite3 b/backend/db.sqlite3
index cee2f3f..437920e 100644
Binary files a/backend/db.sqlite3 and b/backend/db.sqlite3 differ
diff --git a/src/pages/browse.jsx b/src/pages/browse.jsx
index a9497e7..35ad6ad 100644
--- a/src/pages/browse.jsx
+++ b/src/pages/browse.jsx
@@ -163,7 +163,7 @@ export default function Browse() {
p={0}
noOfLines={1}
>
- {school}'s Items
+ Goods @ {school}:
diff --git a/src/pages/postListing.jsx b/src/pages/postListing.jsx
index 77cbaf6..514a6eb 100644
--- a/src/pages/postListing.jsx
+++ b/src/pages/postListing.jsx
@@ -326,9 +326,9 @@ export default function PostListing() {
id="itemCategory"
value={itemCategory}
onChange={(e) => setItemCategory(e.target.value)}
- // className={`p-2 border rounded-lg ${
- // !isEmailValid ? "cursor-not-allowed" : "cursor-text"
- // }`}
+ className={`p-2 border rounded-lg ${
+ !isEmailValid ? "cursor-not-allowed" : "cursor-text"
+ }`}
disabled={!isEmailValid} // Disable input if the email is not valid
>
diff --git a/src/pages/profile.jsx b/src/pages/profile.jsx
index e4269c0..ae66948 100644
--- a/src/pages/profile.jsx
+++ b/src/pages/profile.jsx
@@ -5,10 +5,20 @@ import { Heading, Divider, Button } from "@chakra-ui/react";
import axios from "axios";
import ItemCard from "../components/ItemCard";
import { useNavigate } from "react-router-dom";
+import BrowseItemDisplay from "../components/BrowseItemDisplay";
+import { useLocation } from "react-router-dom";
import OpenAI from "openai";
export default function Profile() {
const { isSignedIn, user, isLoaded } = useUser();
+
+ const location = useLocation();
+ const { school } = location.state || {};
+
+ const isEmailValid = user
+ ? user.primaryEmailAddress.emailAddress.endsWith(".edu")
+ : false;
+
const navigate = useNavigate();
const openai = new OpenAI({
apiKey: import.meta.env.VITE_OPENAI_API_KEY,