Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
function BackdropTransition(props: any) {
return ;
}
export interface ModalState {
style: React.CSSProperties;
}
/* eslint-enable no-use-before-define */
export class Modal extends React.Component {
static defaultProps = {
...BaseModal.defaultProps,
animation: true,
} as any;
static TRANSITION_DURATION = 300;
static BACKDROP_TRANSITION_DURATION = 150;
constructor(props: ModalProps, context: any) {
super(props, context);
this.state = {
style: {}
};
}
static childContextTypes = {
$bs_modal: PropTypes.shape({