aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-23 06:49:03 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-25 01:52:11 +0800
commit46919ce797209aff1f1acd9033f498f9a8d110e3 (patch)
tree735c34529c14326fc5e7f5bd8500d9e8bdc7cca1 /packages/website/ts
parentb4e1ce59f9d5500667228f4ab1a2c9c4ca087ca7 (diff)
downloaddexon-sol-tools-46919ce797209aff1f1acd9033f498f9a8d110e3.tar.gz
dexon-sol-tools-46919ce797209aff1f1acd9033f498f9a8d110e3.tar.zst
dexon-sol-tools-46919ce797209aff1f1acd9033f498f9a8d110e3.zip
Fix build errors
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/components/onboarding/onboarding_flow.tsx2
-rw-r--r--packages/website/ts/containers/portal_onboarding_flow.ts19
2 files changed, 9 insertions, 12 deletions
diff --git a/packages/website/ts/components/onboarding/onboarding_flow.tsx b/packages/website/ts/components/onboarding/onboarding_flow.tsx
index 1d98d5901..350319c63 100644
--- a/packages/website/ts/components/onboarding/onboarding_flow.tsx
+++ b/packages/website/ts/components/onboarding/onboarding_flow.tsx
@@ -6,7 +6,7 @@ import { zIndex } from 'ts/utils/style';
interface OnboardingFlowProps {
steps: Step[];
- stepIndex?: number;
+ stepIndex: number;
isRunning: boolean;
onClose: () => void;
onChange?: (options: any) => void;
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts
index 7e4b3ef39..64f05ec92 100644
--- a/packages/website/ts/containers/portal_onboarding_flow.ts
+++ b/packages/website/ts/containers/portal_onboarding_flow.ts
@@ -3,12 +3,11 @@ import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import { ActionTypes } from 'ts/types';
-import {
- PortalOnboardingFlow as PortalOnboardingFlowComponent,
- PortalOnboardingFlowProps as PortalOnboardingFlowComponentProps,
-} from 'ts/components/onboarding/portal_onboarding_flow';
+import { PortalOnboardingFlow as PortalOnboardingFlowComponent } from 'ts/components/onboarding/portal_onboarding_flow';
import { State } from 'ts/redux/reducer';
+interface PortalOnboardingFlowProps {}
+
interface ConnectedState {
stepIndex: number;
isRunning: boolean;
@@ -18,12 +17,10 @@ interface ConnectedDispatch {
setOnboardingShowing: (isShowing: boolean) => void;
}
-const mapStateToProps = (state: State, ownProps: PortalOnboardingFlowComponentProps): ConnectedState => {
- return {
- stepIndex: state.portalOnboardingStep,
- isRunning: state.isPortalOnboardingShowing,
- };
-};
+const mapStateToProps = (state: State): ConnectedState => ({
+ stepIndex: state.portalOnboardingStep,
+ isRunning: state.isPortalOnboardingShowing,
+});
const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
setOnboardingShowing: (isShowing: boolean): void => {
@@ -34,4 +31,4 @@ const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
},
});
-export const PortalOnboardingFlow: React.ComponentClass<PortalOnboardingFlowComponentProps> = connect(mapStateToProps, mapDispatchToProps)(PortalOnboardingFlowComponent);
+export const PortalOnboardingFlow: React.ComponentClass<PortalOnboardingFlowProps> = connect(mapStateToProps, mapDispatchToProps)(PortalOnboardingFlowComponent);