Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun Hyuk Ahn committed Jan 14, 2024
1 parent 65c5908 commit 5082ae4
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/components/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
]
}
Expand Down Expand Up @@ -55,8 +49,8 @@ const Gallery = () => {
))}
{/* {diaAssets.map((item, index) => (
<div key={index} className="bg-white p-2 rounded-lg" style={{ border: '2px solid #b2d8d8' }}>
<img src={item.name} className="w-full h-48 object-cover rounded-lg" />
<p className="text-center text-sm mt-2">{'TODO: REPLACE THIS WITH ACTUAL DATE'}</p>
<img src={// TODO: get image url from IPFS} className="w-full h-48 object-cover rounded-lg" />
<p className="text-center text-sm mt-2">{item.name}</p>
//{' '}
</div>
))} */}
Expand Down

0 comments on commit 5082ae4

Please sign in to comment.