diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 01:42:48 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 01:53:13 +0800 |
commit | d057b77dc5585756f1df7fad03a415314bd9111b (patch) | |
tree | 4e5a501b5d956c07ea1ea46c6b52ee49eab454de /packages/website/ts/components/onboarding | |
parent | 27d637195db1afca183fec86edfa0204db7f383c (diff) | |
download | dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar.gz dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar.zst dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.zip |
Address PR feedback
Diffstat (limited to 'packages/website/ts/components/onboarding')
-rw-r--r-- | packages/website/ts/components/onboarding/onboarding_flow.tsx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/packages/website/ts/components/onboarding/onboarding_flow.tsx b/packages/website/ts/components/onboarding/onboarding_flow.tsx index 350319c63..dd417856f 100644 --- a/packages/website/ts/components/onboarding/onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/onboarding_flow.tsx @@ -4,24 +4,19 @@ import Joyride, { Step, StyleOptions } from 'react-joyride'; import { zIndex } from 'ts/utils/style'; -interface OnboardingFlowProps { +export interface OnboardingFlowProps { steps: Step[]; stepIndex: number; isRunning: boolean; onClose: () => void; - onChange?: (options: any) => void; } -const style: StyleOptions = { +const joyrideStyleOptions: StyleOptions = { zIndex: zIndex.overlay, }; // Wrapper around Joyride with defaults and styles set export class OnboardingFlow extends React.Component<OnboardingFlowProps> { - public static defaultProps: Partial<OnboardingFlowProps> = { - onChange: _.noop, - }; - public render(): React.ReactNode { return ( <Joyride @@ -29,7 +24,7 @@ export class OnboardingFlow extends React.Component<OnboardingFlowProps> { debug={true} steps={this.props.steps} stepIndex={this.props.stepIndex} - styles={{ options: style }} + styles={{ options: joyrideStyleOptions }} callback={this._handleChange.bind(this)} /> ); @@ -40,6 +35,5 @@ export class OnboardingFlow extends React.Component<OnboardingFlowProps> { case 'close': this.props.onClose(); } - this.props.onChange(options); } } |