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/containers | |
parent | d057b77dc5585756f1df7fad03a415314bd9111b (diff) | |
download | dexon-sol-tools-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar dexon-sol-tools-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.gz dexon-sol-tools-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.bz2 dexon-sol-tools-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.lz dexon-sol-tools-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.xz dexon-sol-tools-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.tar.zst dexon-sol-tools-f8f8bd95ca8ef94b583766d3d8c9d9ac71f04938.zip |
Improve OnboardingFlow API and typescript types
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r-- | packages/website/ts/containers/portal_onboarding_flow.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts index e62e46dd1..3cd4e8510 100644 --- a/packages/website/ts/containers/portal_onboarding_flow.ts +++ b/packages/website/ts/containers/portal_onboarding_flow.ts @@ -14,7 +14,7 @@ interface ConnectedState { } interface ConnectedDispatch { - setOnboardingShowing: (isShowing: boolean) => void; + onClose: () => void; } const mapStateToProps = (state: State): ConnectedState => ({ @@ -23,10 +23,10 @@ const mapStateToProps = (state: State): ConnectedState => ({ }); const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ - setOnboardingShowing: (isShowing: boolean): void => { + onClose: (): void => { dispatch({ type: ActionTypes.UpdatePortalOnboardingShowing, - data: isShowing, + data: false, }); }, }); |