aboutsummaryrefslogtreecommitdiff
path: root/components/image.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/image.tsx')
-rw-r--r--components/image.tsx14
1 files changed, 6 insertions, 8 deletions
diff --git a/components/image.tsx b/components/image.tsx
index ad84ff6..5a8b2cf 100644
--- a/components/image.tsx
+++ b/components/image.tsx
@@ -2,12 +2,10 @@ export default function Image(props: {
src: string;
alt?: string;
}) {
- return <div className="image">
- <img src={props.src} alt={props.alt}/>
- {
- props.alt && <div>
- <p>{props.alt}</p>
- </div>
- }
- </div>
+ return <div className='image'>
+ <img src={props.src} alt={props.alt} />
+ {props.alt && <div>
+ <p>{props.alt}</p>
+ </div>}
+ </div>;
}