diff --git a/packages/nft/src/components/Gallery.tsx b/packages/nft/src/components/Gallery.tsx index 4e095dc87..ae898d0f7 100644 --- a/packages/nft/src/components/Gallery.tsx +++ b/packages/nft/src/components/Gallery.tsx @@ -22,7 +22,7 @@ export type UserQuery = Partial<{ function NFTCard({ nft }: { nft: NFT }) { return ( -
+
@@ -30,11 +30,19 @@ function NFTCard({ nft }: { nft: NFT }) {
-
+
{nft.name}
-

{nft.artist}

+

+ {nft.artist} +

) diff --git a/packages/nft/src/components/Navbar.tsx b/packages/nft/src/components/Navbar.tsx index 8c6adefbd..51b0e6b95 100644 --- a/packages/nft/src/components/Navbar.tsx +++ b/packages/nft/src/components/Navbar.tsx @@ -1,4 +1,5 @@ -import { Link } from "react-router-dom" + +import { Link, useNavigate } from "react-router-dom" import { Modal, Auth, Drawer } from "@bitcoin-computer/components" import { useEffect, useState } from "react" import { initFlowbite } from "flowbite" @@ -158,8 +159,16 @@ function NavbarDropdownButton() { } export function Logo({ name = "Bitcoin Computer 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 babd6814c..14e739046 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)} + +

+ )} ) }