Skip to content

Commit

Permalink
feat(typescript): repair tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
maximedasilva committed Feb 29, 2024
1 parent 5a9338c commit 8bf2262
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/lib/Tabs/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('<Tabs />', () => {
unmount();
});

it('should allow to render tabs from prop', () => {
it.only('should allow to render tabs from prop', () => {
const onToggle = jest.fn();
const { container, getByText, unmount } = render(
<Tabs
Expand Down
4 changes: 3 additions & 1 deletion packages/react/lib/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ const Tabs = forwardRef(({
}
)}
>
<a href="#" onClick={onClick_.bind(null, tab, index)} />
<a href="#" onClick={onClick_.bind(null, tab, index)}>
{ tab.props.title }
</a>
</li>
))}
</ul>
Expand Down

0 comments on commit 8bf2262

Please sign in to comment.