Skip to content

Commit 55cec29

Browse files
committed
Turn some HTML comments into JSX comments
1 parent 8d67a10 commit 55cec29

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/ui/picture.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ delete Astro.props.class;
2424
delete Astro.props.format;
2525
---
2626

27-
<!-- Formatting needs to be maintained for the integration to work properly. --><!-- prettier-ignore -->
27+
{/* Formatting needs to be maintained for the integration to work properly. */}
28+
<!-- prettier-ignore -->
2829
<picture class={pictureClass}>
29-
<!--
30+
{/*
3031
For some reason TypeScript sees a type error in the 'class' property when
3132
there should be none.
32-
-->
33+
*/}
3334
<!-- @ts-expect-error -->
3435
<img optimize-image class={imgClass} decoding="async" loading="lazy" {...Astro.props} />
3536
</picture>

0 commit comments

Comments
 (0)