diff options
Diffstat (limited to 'components/image.tsx')
-rw-r--r-- | components/image.tsx | 8 |
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> |