From 5111ebcbfe6301fa4fea7736d41f3b8ae201d39e Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 23 Oct 2020 23:00:53 -0700 Subject: [PATCH] split out separate Your items header --- src/app/UserItemsPage.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/UserItemsPage.js b/src/app/UserItemsPage.js index 0620719..04d7b25 100644 --- a/src/app/UserItemsPage.js +++ b/src/app/UserItemsPage.js @@ -5,7 +5,7 @@ import { useParams } from "react-router-dom"; import { useQuery } from "@apollo/client"; import HangerSpinner from "./components/HangerSpinner"; -import { Heading1 } from "./util"; +import { Heading1, Heading2 } from "./util"; import ItemCard, { ItemBadgeList, ItemCardList, @@ -28,6 +28,7 @@ function UserItemsPage() { user(id: $userId) { id username + contactNeopetsUsername itemsTheyOwn { id @@ -106,9 +107,12 @@ function UserItemsPage() { - - {isCurrentUser ? "Items you own" : `Items ${data.user.username} owns`} + + {isCurrentUser ? "Your items" : `${data.user.username}'s items`} + + {isCurrentUser ? "Items you own" : `Items ${data.user.username} owns`} + {sortedItemsTheyOwn.map((item) => ( - + {isCurrentUser ? "Items you want" : `Items ${data.user.username} wants`} - + {sortedItemsTheyWant.map((item) => (