From 5b1236d8447636d5ff1a519ef2dc4660ce564a13 Mon Sep 17 00:00:00 2001 From: g-a-v-i-n Date: Wed, 20 Jul 2022 21:24:35 -0400 Subject: [PATCH] wip: grid view --- lib/forge-std | 2 +- packages/inspector/pages/grid.tsx | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 packages/inspector/pages/grid.tsx diff --git a/lib/forge-std b/lib/forge-std index 27e14b7..9825609 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit 27e14b7f2448e5f5ac32719f51fe652aa0b0733e +Subproject commit 98256095f37d83653ba1617d06ccd9604cbd7c6d diff --git a/packages/inspector/pages/grid.tsx b/packages/inspector/pages/grid.tsx new file mode 100644 index 0000000..28623c4 --- /dev/null +++ b/packages/inspector/pages/grid.tsx @@ -0,0 +1,24 @@ +import { Container } from "../components/Container"; +import { useMultiRender } from "../hooks/useMultiRender"; +import { useNFT } from "../hooks/useNFT"; +import { decodeBase64 } from "../util"; + +export default function Index() { + const { tokens, status, handleMultiRender } = useMultiRender(64); + + return ( + +
+ {tokens !== null && + tokens.map((token, index) => { + return ( +
+ ); + })} +
+ + ); +}