Skip to content

Commit

Permalink
fix: render badge in Fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sporiff committed Sep 2, 2023
1 parent 9ee2db2 commit e778c3a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/components/Badge.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ if (Astro.slots.has("default")) {
content = await Astro.slots.render("default");
}
---

<AtlasBadge
client:only="react"
label={content}
color={badgeColor}
iconName={icon}
/>
<Fragment>
<AtlasBadge
client:only="react"
label={content}
color={badgeColor}
iconName={icon}
/>
</Fragment>

0 comments on commit e778c3a

Please sign in to comment.