Skip to content

Commit

Permalink
Address deprecations in the Carousel component (#2391)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jan 17, 2024
1 parent 2975181 commit 9f57d45
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-buttons-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/circuit-ui': patch
---

Resolved deprecation warnings in the Carousel component.
14 changes: 6 additions & 8 deletions packages/circuit-ui/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,12 @@ export function Carousel({
>
{state.paused ? playButtonLabel : pauseButtonLabel}
</PlayButton>
<PrevButton
label={prevButtonLabel}
{...getPreviousControlProps()}
/>
<NextButton
label={nextButtonLabel}
{...getNextControlProps()}
/>
<PrevButton {...getPreviousControlProps()}>
{prevButtonLabel}
</PrevButton>
<NextButton {...getNextControlProps()}>
{nextButtonLabel}
</NextButton>
</ButtonList>
</Controls>
)}
Expand Down

1 comment on commit 9f57d45

@vercel
Copy link

@vercel vercel bot commented on 9f57d45 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.