diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-07 05:23:00 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-07 05:23:00 +0800 |
commit | b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9 (patch) | |
tree | 1560f74d61344670682d8d2597160659f590bdad /packages/website/ts/components/onboarding/onboarding_tooltip.tsx | |
parent | 9669a4d1216b7d22107580daf3e2bff464eb2ade (diff) | |
download | dexon-sol-tools-b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9.tar dexon-sol-tools-b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9.tar.gz dexon-sol-tools-b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9.tar.bz2 dexon-sol-tools-b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9.tar.lz dexon-sol-tools-b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9.tar.xz dexon-sol-tools-b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9.tar.zst dexon-sol-tools-b9e51d2fad271cab4803ca4d6acf28b9ec9da4c9.zip |
Add updated asset for unlock metamask portal onboarding step
Diffstat (limited to 'packages/website/ts/components/onboarding/onboarding_tooltip.tsx')
-rw-r--r-- | packages/website/ts/components/onboarding/onboarding_tooltip.tsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/website/ts/components/onboarding/onboarding_tooltip.tsx b/packages/website/ts/components/onboarding/onboarding_tooltip.tsx index d8065625d..15d47908d 100644 --- a/packages/website/ts/components/onboarding/onboarding_tooltip.tsx +++ b/packages/website/ts/components/onboarding/onboarding_tooltip.tsx @@ -4,22 +4,27 @@ import { OnboardingCard, OnboardingCardProps } from 'ts/components/onboarding/on import { Pointer, PointerDirection } from 'ts/components/ui/pointer'; export type ContinueButtonDisplay = 'enabled' | 'disabled'; +export type TooltipPointerDisplay = PointerDirection | 'none'; export interface OnboardingTooltipProps extends OnboardingCardProps { className?: string; - pointerDirection?: PointerDirection; + pointerDisplay?: TooltipPointerDisplay; } export const OnboardingTooltip: React.StatelessComponent<OnboardingTooltipProps> = props => { - const { pointerDirection, className, ...cardProps } = props; + const { pointerDisplay, className, ...cardProps } = props; + const card = <OnboardingCard {...cardProps} />; + if (pointerDisplay === 'none') { + return card; + } return ( - <Pointer className={className} direction={pointerDirection}> + <Pointer className={className} direction={pointerDisplay}> <OnboardingCard {...cardProps} /> </Pointer> ); }; OnboardingTooltip.defaultProps = { - pointerDirection: 'left', + pointerDisplay: 'left', }; OnboardingTooltip.displayName = 'OnboardingTooltip'; |