File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ export default function Playground({
417
417
return null ;
418
418
}
419
419
return (
420
- < PlaygroundTabs className = "playground__tabs" >
420
+ < PlaygroundTabs groupId = { usageTarget } className = "playground__tabs" >
421
421
{ Object . keys ( codeSnippets [ usageTarget ] ) . map ( ( fileName ) => (
422
422
< TabItem
423
423
className = "playground__tab-item"
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ function TabsComponent(props: Props): JSX.Element {
108
108
useEffect ( ( ) => {
109
109
setLeftNavVisible ( tabsNavEl . current ?. scrollLeft > 40 ) ;
110
110
setRightNavVisible ( tabsNavEl . current ?. scrollWidth > tabsNavEl . current ?. offsetWidth ) ;
111
- } , [ ] ) ;
111
+ } , [ groupId ] ) ;
112
112
113
113
/**
114
114
* If the selected value is not in the available tabs, fall back to the first tab.
You can’t perform that action at this time.
0 commit comments