import * as _ from 'lodash'; import * as React from 'react'; import Joyride, { Step, StyleOptions } from 'react-joyride'; import { zIndex } from 'ts/utils/style'; interface OnboardingFlowProps { steps: Step[]; stepIndex?: number; isRunning: boolean; onClose: () => void; onChange?: (options: any) => void; } const style: StyleOptions = { zIndex: zIndex.overlay, }; // Wrapper around Joyride with defaults and styles set export class OnboardingFlow extends React.Component { public static defaultProps: Partial = { onChange: _.noop, }; public render(): React.ReactNode { return ( ); } private _handleChange(options: any): void { switch (options.action) { case 'close': this.props.onClose(); } this.props.onChange(options); } }