aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-25 02:24:10 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-25 02:24:10 +0800
commitf8f8bd95ca8ef94b583766d3d8c9d9ac71f04938 (patch)
treed8baa9253782d0ce5a333534cc49fef45f6f9f83 /packages/website/ts/containers
parentd057b77dc5585756f1df7fad03a415314bd9111b (diff)
downloaddexon-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.ts6
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,
});
},
});