aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-16 09:27:23 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-16 09:34:57 +0800
commit8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186 (patch)
tree85266d3d3fc588100b134e1a82de3c82ab6773f9 /packages/website/ts/components
parent433f830cf33f6383e83cca5e08b1f58bc18a0828 (diff)
downloaddexon-0x-contracts-8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186.tar
dexon-0x-contracts-8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186.tar.gz
dexon-0x-contracts-8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186.tar.bz2
dexon-0x-contracts-8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186.tar.lz
dexon-0x-contracts-8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186.tar.xz
dexon-0x-contracts-8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186.tar.zst
dexon-0x-contracts-8a76fdc126c4e8d8b388d9e50bbc7fb8c7862186.zip
Finish last onboarding step
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/onboarding/congrats_onboarding_step.tsx15
-rw-r--r--packages/website/ts/components/onboarding/onboarding_flow.tsx2
-rw-r--r--packages/website/ts/components/onboarding/onboarding_tooltip.tsx5
-rw-r--r--packages/website/ts/components/onboarding/portal_onboarding_flow.tsx4
4 files changed, 24 insertions, 2 deletions
diff --git a/packages/website/ts/components/onboarding/congrats_onboarding_step.tsx b/packages/website/ts/components/onboarding/congrats_onboarding_step.tsx
new file mode 100644
index 000000000..3a8db8c36
--- /dev/null
+++ b/packages/website/ts/components/onboarding/congrats_onboarding_step.tsx
@@ -0,0 +1,15 @@
+import * as React from 'react';
+import { Container } from 'ts/components/ui/container';
+import { Text } from 'ts/components/ui/text';
+
+export interface CongratsOnboardingStepProps {}
+
+export const CongratsOnboardingStep: React.StatelessComponent<CongratsOnboardingStepProps> = () => (
+ <div className="flex items-center flex-column">
+ <Text>Your wallet is now set up for trading. Use it on any relayer in the 0x ecosystem.</Text>
+ <Container marginTop="25px" marginBottom="15px" className="flex justify-center">
+ <img src="/images/zrx_ecosystem.svg" height="150px" />
+ </Container>
+ <Text>No need to log in. Each relayer automatically detects and connects to your metamask wallet.</Text>
+ </div>
+);
diff --git a/packages/website/ts/components/onboarding/onboarding_flow.tsx b/packages/website/ts/components/onboarding/onboarding_flow.tsx
index 7a5a6e40f..34aeace82 100644
--- a/packages/website/ts/components/onboarding/onboarding_flow.tsx
+++ b/packages/website/ts/components/onboarding/onboarding_flow.tsx
@@ -13,6 +13,7 @@ export interface Step {
shouldHideBackButton?: boolean;
shouldHideNextButton?: boolean;
continueButtonDisplay?: ContinueButtonDisplay;
+ continueButtonText?: string;
}
export interface OnboardingFlowProps {
@@ -65,6 +66,7 @@ export class OnboardingFlow extends React.Component<OnboardingFlowProps> {
onClickNext={this._goToNextStep.bind(this)}
onClickBack={this._goToPrevStep.bind(this)}
continueButtonDisplay={step.continueButtonDisplay}
+ continueButtonText={step.continueButtonText}
/>
</Container>
);
diff --git a/packages/website/ts/components/onboarding/onboarding_tooltip.tsx b/packages/website/ts/components/onboarding/onboarding_tooltip.tsx
index 0858ad326..45851b4de 100644
--- a/packages/website/ts/components/onboarding/onboarding_tooltip.tsx
+++ b/packages/website/ts/components/onboarding/onboarding_tooltip.tsx
@@ -21,6 +21,7 @@ export interface OnboardingTooltipProps {
shouldHideBackButton?: boolean;
shouldHideNextButton?: boolean;
pointerDirection?: PointerDirection;
+ continueButtonText?: string;
className?: string;
}
@@ -28,6 +29,7 @@ export const OnboardingTooltip: React.StatelessComponent<OnboardingTooltipProps>
title,
content,
continueButtonDisplay,
+ continueButtonText,
onClickNext,
onClickBack,
onClose,
@@ -59,7 +61,7 @@ export const OnboardingTooltip: React.StatelessComponent<OnboardingTooltipProps>
fontSize="15px"
backgroundColor={colors.mediumBlue}
>
- Continue
+ {continueButtonText}
</Button>
)}
<Container className="flex justify-between" marginTop="15px">
@@ -82,6 +84,7 @@ export const OnboardingTooltip: React.StatelessComponent<OnboardingTooltipProps>
OnboardingTooltip.defaultProps = {
pointerDirection: 'left',
+ continueButtonText: 'Continue',
};
OnboardingTooltip.displayName = 'OnboardingTooltip';
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
index ad2ada93b..4283022e2 100644
--- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
+++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
@@ -4,6 +4,7 @@ import * as React from 'react';
import { BigNumber } from '@0xproject/utils';
import { Blockchain } from 'ts/blockchain';
import { AddEthOnboardingStep } from 'ts/components/onboarding/add_eth_onboarding_step';
+import { CongratsOnboardingStep } from 'ts/components/onboarding/congrats_onboarding_step';
import { InstallWalletOnboardingStep } from 'ts/components/onboarding/install_wallet_onboarding_step';
import { IntroOnboardingStep } from 'ts/components/onboarding/intro_onboarding_step';
import { OnboardingFlow, Step } from 'ts/components/onboarding/onboarding_flow';
@@ -110,10 +111,11 @@ export class PortalOnboardingFlow extends React.Component<PortalOnboardingFlowPr
{
target: '.wallet',
title: '🎉 Congrats! The ecosystem awaits.',
- content: 'Your wallet is now set up for trading. Use it on any relayer in the 0x ecosystem.',
+ content: <CongratsOnboardingStep />,
placement: 'right',
continueButtonDisplay: 'enabled',
shouldHideNextButton: true,
+ continueButtonText: 'Enter the 0x Ecosystem',
},
];
return steps;