From 2ad59566c9d97913c82b9b56997644eb309e968e Mon Sep 17 00:00:00 2001 From: Jack Frain Date: Mon, 21 Oct 2024 20:57:37 -0400 Subject: [PATCH] Reimplement stampjs --- package.json | 2 +- src/components/item.tsx | 2 +- src/index.css | 8 -------- src/pages/home/index.tsx | 8 +++----- src/pages/show/index.tsx | 16 ++++++---------- src/services/stamps.ts | 34 +++++++++++++++------------------- 6 files changed, 26 insertions(+), 44 deletions(-) diff --git a/package.json b/package.json index 13a1621..b834bc9 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "dependencies": { "@permaweb/aoconnect": "^0.0.54", - "@permaweb/stampjs": "file:/Users/jackfrain/Desktop/stamp/packages/stampjs", + "@permaweb/stampjs": "^1.0.0", "@tailwindcss/typography": "^0.5.15", "arweave-wallet-connector": "^1.0.2", "crocks": "^0.12.4", diff --git a/src/components/item.tsx b/src/components/item.tsx index ff2b4a3..d1aa859 100644 --- a/src/components/item.tsx +++ b/src/components/item.tsx @@ -80,7 +80,7 @@ const Asset = ({ > {shortHash(id)} - {/* Stamps: ({stamps}) */} + Stamps: ({stamps}) Date: {date} diff --git a/src/index.css b/src/index.css index b159fef..8c2369c 100644 --- a/src/index.css +++ b/src/index.css @@ -3151,10 +3151,6 @@ html:has(.drawer-toggle:checked){ flex: 1 1 0%; } -.cursor-not-allowed{ - cursor: not-allowed; -} - .flex-col{ flex-direction: column; } @@ -3437,10 +3433,6 @@ html:has(.drawer-toggle:checked){ color: var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity))); } -.opacity-50{ - opacity: 0.5; -} - .filter{ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); } diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index c36d7b6..bc2b81f 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -34,8 +34,7 @@ const HomePage = () => { } const handleStamp = () => { - console.log('stamping disabled') - // send('stamp') + send('stamp') } return ( @@ -84,9 +83,8 @@ const HomePage = () => { )} - )} diff --git a/src/pages/show/index.tsx b/src/pages/show/index.tsx index 62a5c63..c4d22de 100644 --- a/src/pages/show/index.tsx +++ b/src/pages/show/index.tsx @@ -27,9 +27,7 @@ const ShowPage = ({ tx, parent = false }: { tx: string, parent?: boolean }) => { }, []) const handleStamp = () => { - console.log('stamping disabled') - // TODO: add stamp logic - // send('stamp') + send('stamp') } const handleReset = async () => { @@ -37,7 +35,6 @@ const ShowPage = ({ tx, parent = false }: { tx: string, parent?: boolean }) => { route("/", true) } - console.log({ context }) return ( <> {current === 'loading' ? ( @@ -54,9 +51,8 @@ const ShowPage = ({ tx, parent = false }: { tx: string, parent?: boolean }) => {