Skip to content

Commit

Permalink
fix(Tabs): omit onClick from tab type
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Apr 6, 2022
1 parent 771a5db commit 338991c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/iframe.html
Expand Up @@ -347,4 +347,4 @@



window['STORIES'] = [{"titlePrefix":"","directory":"./.storybook/docs/pages","files":"Welcome.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:\\.storybook\\/docs\\/pages\\/Welcome\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.538aee93.iframe.bundle.js"></script><script src="vendors~main.cb79b85f.iframe.bundle.js"></script><script src="main.101ce7a2.iframe.bundle.js"></script></body></html>
window['STORIES'] = [{"titlePrefix":"","directory":"./.storybook/docs/pages","files":"Welcome.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:\\.storybook\\/docs\\/pages\\/Welcome\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.538aee93.iframe.bundle.js"></script><script src="vendors~main.cb79b85f.iframe.bundle.js"></script><script src="main.3547d339.iframe.bundle.js"></script></body></html>
1 change: 0 additions & 1 deletion docs/main.101ce7a2.iframe.bundle.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/main.3547d339.iframe.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Tabs/Tab.tsx
Expand Up @@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge'

import { ComponentSize } from '../types'

export type TabProps<T> = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
export type TabProps<T> = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick'> & {
value: T
activeValue?: T
onClick?: (value: T) => void
Expand Down

0 comments on commit 338991c

Please sign in to comment.