fancy text editor
This commit is contained in:
parent
db1c642072
commit
82361fdf63
6 changed files with 119 additions and 11 deletions
|
@ -45,7 +45,13 @@ export default function PostItem({ post, index }: PostItemProps) {
|
|||
{post.media.length > 0 && (
|
||||
<div className="grid gap-4 grid-cols-1">
|
||||
{post.media.map((src) => (
|
||||
<img key={src} src={src} alt="" className="w-full h-auto" loading="lazy" />
|
||||
<img
|
||||
key={src.toString()}
|
||||
src={src.toString()}
|
||||
alt="todo sry :("
|
||||
className="w-full h-auto"
|
||||
loading="lazy"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue