Fix issue where modal can be out of sync with app state

This commit is contained in:
fragosti
2018-05-22 15:18:22 -07:00
parent 7af77d3eb0
commit b4e1ce59f9
7 changed files with 56 additions and 18 deletions

View File

@@ -14,11 +14,13 @@ declare module 'react-joyride' {
zIndex?: number,
}
export type Placement = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "right" | "left";
export interface Step {
title?: string;
content: React.ReactNode;
target: string;
placement?: "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "right" | "left";
placement?: Placement;
type?: "click" | "hover";
isFixed?: boolean;
allowClicksThruHole?: boolean;
@@ -29,7 +31,8 @@ declare module 'react-joyride' {
export interface Props {
steps?: Step[];
beaconComponent?: React.ComponentClass;
beaconComponent?: React.ReactNode;
disableOverlayClose?: boolean;
run?: boolean;
stepIndex?: number;
callback?: (options: any) => void;