Skip to content

Commit c437928

Browse files
fussel178Ludwig Richter
authored and
Ludwig Richter
committed
fix(common): Tabs in navigation bar now use react-spectrum tabs v3 rc0
1 parent 886c9c8 commit c437928

File tree

1 file changed

+8
-6
lines changed
  • packages/telestion-client-common/src/components/header/nav-bar

1 file changed

+8
-6
lines changed

packages/telestion-client-common/src/components/header/nav-bar/nav-bar.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22
import { Heading } from '@adobe/react-spectrum';
3-
import { Item, Tabs } from '@react-spectrum/tabs';
3+
import { Item, Tabs, TabList } from '@react-spectrum/tabs';
44
import { useTitle } from '@wuespace/telestion-client-core';
55
import { Link, useNavBarState } from './use-nav-bar-state';
66

@@ -84,11 +84,13 @@ export function NavBar({ links }: NavBarProps) {
8484
selectedKey={selected}
8585
onSelectionChange={onSelectionChange}
8686
>
87-
{item => (
88-
<Item title={item.title} key={item.path}>
89-
<></>
90-
</Item>
91-
)}
87+
<TabList>
88+
{(item: Link) => (
89+
<Item title={item.title} key={item.path}>
90+
<></>
91+
</Item>
92+
)}
93+
</TabList>
9294
</Tabs>
9395
);
9496
}

0 commit comments

Comments
 (0)