Fix build errors
This commit is contained in:
		@@ -29,6 +29,10 @@ declare module 'react-joyride' {
 | 
				
			|||||||
        [prop: string]: any;
 | 
					        [prop: string]: any;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    interface StyleOptionsProp {
 | 
				
			||||||
 | 
					        options: StyleOptions;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    export interface Props {
 | 
					    export interface Props {
 | 
				
			||||||
        steps?: Step[];
 | 
					        steps?: Step[];
 | 
				
			||||||
        beaconComponent?: React.ReactNode;
 | 
					        beaconComponent?: React.ReactNode;
 | 
				
			||||||
@@ -37,7 +41,7 @@ declare module 'react-joyride' {
 | 
				
			|||||||
        stepIndex?: number;
 | 
					        stepIndex?: number;
 | 
				
			||||||
        callback?: (options: any) => void;
 | 
					        callback?: (options: any) => void;
 | 
				
			||||||
        debug?: boolean;
 | 
					        debug?: boolean;
 | 
				
			||||||
        styles?: { options: StyleOptions };
 | 
					        styles?: StyleOptionsProp;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    export interface State {
 | 
					    export interface State {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ import { zIndex } from 'ts/utils/style';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
interface OnboardingFlowProps {
 | 
					interface OnboardingFlowProps {
 | 
				
			||||||
    steps: Step[];
 | 
					    steps: Step[];
 | 
				
			||||||
    stepIndex?: number;
 | 
					    stepIndex: number;
 | 
				
			||||||
    isRunning: boolean;
 | 
					    isRunning: boolean;
 | 
				
			||||||
    onClose: () => void;
 | 
					    onClose: () => void;
 | 
				
			||||||
    onChange?: (options: any) => void;
 | 
					    onChange?: (options: any) => void;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,12 +3,11 @@ import { connect } from 'react-redux';
 | 
				
			|||||||
import { Dispatch } from 'redux';
 | 
					import { Dispatch } from 'redux';
 | 
				
			||||||
import { ActionTypes } from 'ts/types';
 | 
					import { ActionTypes } from 'ts/types';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {
 | 
					import { PortalOnboardingFlow as PortalOnboardingFlowComponent } from 'ts/components/onboarding/portal_onboarding_flow';
 | 
				
			||||||
    PortalOnboardingFlow as PortalOnboardingFlowComponent,
 | 
					 | 
				
			||||||
    PortalOnboardingFlowProps as PortalOnboardingFlowComponentProps,
 | 
					 | 
				
			||||||
} from 'ts/components/onboarding/portal_onboarding_flow';
 | 
					 | 
				
			||||||
import { State } from 'ts/redux/reducer';
 | 
					import { State } from 'ts/redux/reducer';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					interface PortalOnboardingFlowProps {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface ConnectedState {
 | 
					interface ConnectedState {
 | 
				
			||||||
    stepIndex: number;
 | 
					    stepIndex: number;
 | 
				
			||||||
    isRunning: boolean;
 | 
					    isRunning: boolean;
 | 
				
			||||||
@@ -18,12 +17,10 @@ interface ConnectedDispatch {
 | 
				
			|||||||
    setOnboardingShowing: (isShowing: boolean) => void;
 | 
					    setOnboardingShowing: (isShowing: boolean) => void;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const mapStateToProps = (state: State, ownProps: PortalOnboardingFlowComponentProps): ConnectedState => {
 | 
					const mapStateToProps = (state: State): ConnectedState => ({
 | 
				
			||||||
    return {
 | 
					    stepIndex: state.portalOnboardingStep,
 | 
				
			||||||
        stepIndex: state.portalOnboardingStep,
 | 
					    isRunning: state.isPortalOnboardingShowing,
 | 
				
			||||||
        isRunning: state.isPortalOnboardingShowing,
 | 
					});
 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
 | 
					const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
 | 
				
			||||||
    setOnboardingShowing: (isShowing: boolean): void => {
 | 
					    setOnboardingShowing: (isShowing: boolean): void => {
 | 
				
			||||||
@@ -34,4 +31,4 @@ const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const PortalOnboardingFlow: React.ComponentClass<PortalOnboardingFlowComponentProps> = connect(mapStateToProps, mapDispatchToProps)(PortalOnboardingFlowComponent);
 | 
					export const PortalOnboardingFlow: React.ComponentClass<PortalOnboardingFlowProps> = connect(mapStateToProps, mapDispatchToProps)(PortalOnboardingFlowComponent);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user