File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
packages/circuit-ui/components/Carousel Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @sumup/circuit-ui ' : patch
3+ ---
4+
5+ Resolved deprecation warnings in the Carousel component.
Original file line number Diff line number Diff line change @@ -204,14 +204,12 @@ export function Carousel({
204204 >
205205 { state . paused ? playButtonLabel : pauseButtonLabel }
206206 </ PlayButton >
207- < PrevButton
208- label = { prevButtonLabel }
209- { ...getPreviousControlProps ( ) }
210- />
211- < NextButton
212- label = { nextButtonLabel }
213- { ...getNextControlProps ( ) }
214- />
207+ < PrevButton { ...getPreviousControlProps ( ) } >
208+ { prevButtonLabel }
209+ </ PrevButton >
210+ < NextButton { ...getNextControlProps ( ) } >
211+ { nextButtonLabel }
212+ </ NextButton >
215213 </ ButtonList >
216214 </ Controls >
217215 ) }
You can’t perform that action at this time.
0 commit comments