Get tests passing again

This commit is contained in:
Ryan Cavanaugh
2016-07-27 20:45:08 -07:00
parent ca19fab9cf
commit 29ba4b7a42
8 changed files with 25 additions and 19 deletions
+11 -2
View File
@@ -8,7 +8,7 @@ export = ReactBootstrap;
declare namespace ReactBootstrap {
type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'lg' | 'large';
type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'medium' | 'lg' | 'large';
// Change onSelect signature to be (eventKey: any, event: SyntheticEvent<{}>) => any on all React-Bootstrap components, instead of the old inconsistent mishmash (#1604, #1677, #1756)
@@ -307,6 +307,13 @@ declare namespace ReactBootstrap {
// <Modal.Dialog />
interface ModalDialogProps extends React.HTMLProps<ModalDialog> {
// TODO: Add more specific type
onHide?: Function;
onEnter?: Function;
onEntered?: Function;
onEntering?: Function;
onExit?: Function;
onExited?: Function;
onExiting?: Function;
}
type ModalDialog = React.ClassicComponent<ModalDialogProps, {}>;
var ModalDialog: React.ClassicComponentClass<ModalDialogProps>;
@@ -569,11 +576,13 @@ declare namespace ReactBootstrap {
interface NavDropdownBaseProps
extends DropdownBaseProps {
noCaret?: boolean;
eventKey?: any;
}
type NavDropdownProps = NavDropdownBaseProps & React.HTMLProps<NavDropdown>;
class NavDropdown
extends React.Component<NavDropdownProps, {}>
{ }
{
}
// <Tabs />
+1 -1
View File
@@ -170,7 +170,7 @@ export class ReactBootstrapTest extends Component<any, any> {
</div>
<div style={style}>
<DropdownButton bsStyle={'default'} title={'hello'} key={0} id={0}>
<DropdownButton bsStyle={'default'} title={'hello'} key={0} id={"0"}>
<MenuItem eventKey='1'>Action</MenuItem>
<MenuItem eventKey='2'>Another action</MenuItem>
<MenuItem eventKey='3' active>Active Item</MenuItem>