We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886c9c8 commit c437928Copy full SHA for c437928
packages/telestion-client-common/src/components/header/nav-bar/nav-bar.tsx
@@ -1,6 +1,6 @@
1
import PropTypes from 'prop-types';
2
import { Heading } from '@adobe/react-spectrum';
3
-import { Item, Tabs } from '@react-spectrum/tabs';
+import { Item, Tabs, TabList } from '@react-spectrum/tabs';
4
import { useTitle } from '@wuespace/telestion-client-core';
5
import { Link, useNavBarState } from './use-nav-bar-state';
6
@@ -84,11 +84,13 @@ export function NavBar({ links }: NavBarProps) {
84
selectedKey={selected}
85
onSelectionChange={onSelectionChange}
86
>
87
- {item => (
88
- <Item title={item.title} key={item.path}>
89
- <></>
90
- </Item>
91
- )}
+ <TabList>
+ {(item: Link) => (
+ <Item title={item.title} key={item.path}>
+ <></>
+ </Item>
92
+ )}
93
+ </TabList>
94
</Tabs>
95
);
96
}
0 commit comments