From c98c2fe36f58443d9bddfa486bdfc138d33da55b Mon Sep 17 00:00:00 2001 From: jonty007 Date: Tue, 23 Jul 2024 17:12:06 +0530 Subject: [PATCH 1/2] search by public key --- packages/nft/src/components/Navbar.tsx | 13 +++++++++++-- packages/nft/src/components/Nft.tsx | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/packages/nft/src/components/Navbar.tsx b/packages/nft/src/components/Navbar.tsx index 8f539b1d1..a5e6f1006 100644 --- a/packages/nft/src/components/Navbar.tsx +++ b/packages/nft/src/components/Navbar.tsx @@ -1,4 +1,4 @@ -import { Link } from "react-router-dom" +import { Link, useNavigate } from "react-router-dom" import { Modal, Auth, UtilsContext, Drawer } from "@bitcoin-computer/components" import { useEffect, useState } from "react" import { initFlowbite } from "flowbite" @@ -246,8 +246,17 @@ function NavbarDropdownButton() { } export function Logo({ name = "TBC NFT" }) { + const navigate = useNavigate() + return ( - + { + navigate(`/`) + window.location.reload() + }} + className="flex items-center space-x-3 rtl:space-x-reverse" + > Bitcoin Computer Logo {name} diff --git a/packages/nft/src/components/Nft.tsx b/packages/nft/src/components/Nft.tsx index dd06b2e22..ee5888c13 100644 --- a/packages/nft/src/components/Nft.tsx +++ b/packages/nft/src/components/Nft.tsx @@ -112,6 +112,21 @@ const SmartObjectValues = ({ smartObject }: any) => { )} + {smartObject._owners && smartObject._owners[0] && ( +

+ {capitalizeFirstLetter("owned by:")}{" "} + { + Modal.hideModal(modalId) + }} + > + {smartObject._owners[0].substring(0, 8)}... + {smartObject._owners[0].substring(smartObject._owners[0].length - 2)} + +

+ )} ) } From b7309d6e3b160f4688e7f4d9291b65ac19b4e28a Mon Sep 17 00:00:00 2001 From: jonty007 Date: Fri, 2 Aug 2024 14:45:16 +0530 Subject: [PATCH 2/2] NFT UI --- packages/nft/src/components/Gallery.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/nft/src/components/Gallery.tsx b/packages/nft/src/components/Gallery.tsx index 188d62a64..c7870e4b0 100644 --- a/packages/nft/src/components/Gallery.tsx +++ b/packages/nft/src/components/Gallery.tsx @@ -23,7 +23,7 @@ export type UserQuery = Partial<{ function NFTCard({ nft }: { nft: NFT }) { console.log(nft) return ( -
+