diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 02:24:10 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 02:24:10 +0800 |
commit | f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938 (patch) | |
tree | d8baa9253782d0ce5a333534cc49fef45f6f9f83 /packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | |
parent | d057b77dc5585756f1df7fad03a415314bd9111b (diff) | |
download | dexon-0x-contracts-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar dexon-0x-contracts-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.gz dexon-0x-contracts-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.bz2 dexon-0x-contracts-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.lz dexon-0x-contracts-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.xz dexon-0x-contracts-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.zst dexon-0x-contracts-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.zip |
Improve OnboardingFlow API and typescript types
Diffstat (limited to 'packages/website/ts/components/onboarding/portal_onboarding_flow.tsx')
-rw-r--r-- | packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index 9bccd0a9c..11684aaee 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -6,7 +6,7 @@ import { OnboardingFlow } from 'ts/components/onboarding/onboarding_flow'; export interface PortalOnboardingFlowProps { stepIndex: number; isRunning: boolean; - setOnboardingShowing: (isShowing: boolean) => void; + onClose: () => void; } const steps: Step[] = [ @@ -25,12 +25,8 @@ export class PortalOnboardingFlow extends React.Component<PortalOnboardingFlowPr steps={steps} stepIndex={this.props.stepIndex} isRunning={this.props.isRunning} - onClose={this._handleClose.bind(this)} + onClose={this.props.onClose} /> ); } - - private _handleClose(): void { - this.props.setOnboardingShowing(false); - } } |