From b28d8256b838b011b6b12a9a8ff9781ad16299eb Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 24 Oct 2020 00:08:22 -0700 Subject: [PATCH] add lookup/neomail links to user item pages --- src/app/UserItemsPage.js | 50 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/src/app/UserItemsPage.js b/src/app/UserItemsPage.js index c630865..5e8863d 100644 --- a/src/app/UserItemsPage.js +++ b/src/app/UserItemsPage.js @@ -1,5 +1,6 @@ import React from "react"; -import { Box, Center } from "@chakra-ui/core"; +import { Badge, Box, Center, Wrap } from "@chakra-ui/core"; +import { EmailIcon } from "@chakra-ui/icons"; import gql from "graphql-tag"; import { useParams } from "react-router-dom"; import { useQuery } from "@apollo/client"; @@ -116,10 +117,32 @@ function UserItemsPage() { - + {isCurrentUser ? "Your items" : `${data.user.username}'s items`} - + {data.user.contactNeopetsUsername && ( + + + + {data.user.contactNeopetsUsername} + + + + Neomail + + + )} + {isCurrentUser ? "Items you own" : `Items ${data.user.username} owns`} @@ -168,4 +191,25 @@ function UserItemsPage() { ); } +function NeopetsStarIcon(props) { + return ( + + + + + + ); +} + export default UserItemsPage;