From 5082ae435842c4c629dce167430b97e7025a804f Mon Sep 17 00:00:00 2001 From: Sun Hyuk Ahn Date: Sat, 13 Jan 2024 21:51:54 -0800 Subject: [PATCH] cleanup --- src/components/Gallery.tsx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/Gallery.tsx b/src/components/Gallery.tsx index 86b1dc5..1785f6c 100644 --- a/src/components/Gallery.tsx +++ b/src/components/Gallery.tsx @@ -7,22 +7,16 @@ import { useEffect } from 'react' const DIA = 'dia' -// types -export type GalleryItem = { - imageUrl: string - address?: string // TODO: required - date: string // TODO: timestamp -} - const Gallery = () => { const wallet = useWallet() - const fetchContent = (): GalleryItem[] => { + // TODO: placeholder + const fetchContent = () => { return [ { imageUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/The_Great_Wave_off_Kanagawa.jpg/1280px-The_Great_Wave_off_Kanagawa.jpg', - date: '2024-01-13', + date: 'happy 2024-01-13', }, ] } @@ -55,8 +49,8 @@ const Gallery = () => { ))} {/* {diaAssets.map((item, index) => (
- -

{'TODO: REPLACE THIS WITH ACTUAL DATE'}

+ +

{item.name}

//{' '}
))} */}