mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Merge pull request #19040 from RckMrkr/fix-type-error-in-react-tabs
Fixed type error in react-tabs
This commit is contained in:
2
types/react-tabs/index.d.ts
vendored
2
types/react-tabs/index.d.ts
vendored
@@ -34,7 +34,7 @@ declare namespace ReactTabs {
|
||||
className?: string | Array<string> | { [name: string]: boolean; };
|
||||
disabled?: boolean;
|
||||
disabledClassName?: string;
|
||||
selectedClassName?: boolean;
|
||||
selectedClassName?: string;
|
||||
}
|
||||
|
||||
interface Tab extends React.ComponentClass<TabProps> {}
|
||||
|
||||
@@ -15,7 +15,7 @@ class TestApp extends React.Component {
|
||||
return React.createElement(Tabs, {onSelect: this.onSelect, selectedIndex: 1},
|
||||
React.createElement(TabList, {className: "test-class"},
|
||||
React.createElement(Tab, {disabled: true}, "Tab1"),
|
||||
React.createElement(Tab, {}, "Tab2"),
|
||||
React.createElement(Tab, {selectedClassName: "active"}, "Tab2"),
|
||||
React.createElement(Tab, {}, "Tab3")),
|
||||
React.createElement(TabPanel, {}, React.createElement("h2", {}, "Content1")),
|
||||
React.createElement(TabPanel, {}, React.createElement("h2", {}, "Content2")),
|
||||
|
||||
Reference in New Issue
Block a user