Skip to content

Commit 533ebed

Browse files
authored
feat: change types into React.Key of tabs props
1 parent 81f004d commit 533ebed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type TabOffsetMap = Map<React.Key, TabOffset>;
2222
export type TabPosition = 'left' | 'right' | 'top' | 'bottom';
2323

2424
export interface Tab extends Omit<TabPaneProps, 'tab'> {
25-
key: string;
25+
key: React.Key;
2626
label: React.ReactNode;
2727
}
2828

0 commit comments

Comments
 (0)