aboutsummaryrefslogtreecommitdiff
path: root/components/image.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-12 10:25:43 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-12 10:25:43 +0200
commit822d1ee1be99b7d96740585ddd1174b94916335d (patch)
tree7005e359d7f62dede5f3eabe02becec37d8bfe57 /components/image.tsx
parent7f7e14bd9dce02e6ced663fd527a5750cd13f920 (diff)
dprint formatter :tada:
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>;
}