aboutsummaryrefslogtreecommitdiff
path: root/components/image.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-29 10:18:51 +0200
committerlonkaars <l.leblansch@gmail.com>2021-03-29 10:18:51 +0200
commit3c418d9229bf4023816fae82e5524ae902c0e982 (patch)
tree91931e18304a9c03f7fdd8095f377e74f0143bf8 /components/image.tsx
parent9eb1c1d1eee4286b6e7a124d3f5a32b3af453be0 (diff)
[meta] tag parsing
Diffstat (limited to 'components/image.tsx')
-rw-r--r--components/image.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/image.tsx b/components/image.tsx
index 106c2bd..ad84ff6 100644
--- a/components/image.tsx
+++ b/components/image.tsx
@@ -1,12 +1,12 @@
export default function Image(props: {
src: string;
- title?: string;
+ alt?: string;
}) {
return <div className="image">
- <img src={props.src} alt={props.title}/>
+ <img src={props.src} alt={props.alt}/>
{
- props.title && <div>
- <p>{props.title}</p>
+ props.alt && <div>
+ <p>{props.alt}</p>
</div>
}
</div>