Skip to content

Commit

Permalink
chore: use label prop rather than children in Stamp (#1899)
Browse files Browse the repository at this point in the history
* chore: use label prop rather than children in Stamp

* chore: changeset
  • Loading branch information
gabriele-ct authored Jan 4, 2024
1 parent f1e873b commit fef81df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-kids-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-docs/gatsby-theme-docs': patch
---

get rid of deprecated use of children prop for Stamp component
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ const ReleaseNoteBody = (props) => (
})}
>
<SpacingsInline>
<Stamp isCondensed tone={mapTypeToTone(props)}>
{mapTypeToLabel(props)}
</Stamp>
<Stamp
isCondensed
tone={mapTypeToTone(props)}
label={mapTypeToLabel(props)}
/>
</SpacingsInline>
</div>
{props.topics.length > 0 && (
Expand Down

0 comments on commit fef81df

Please sign in to comment.