How to use the react-overlays/es/Modal.defaultProps function in react-overlays

To help you get started, we’ve selected a few react-overlays examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github signumsoftware / framework / Signum.React / Scripts / Components / Modal.tsx View on Github external
}

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({