aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-21 07:05:19 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-21 07:05:19 +0800
commitc34897036e8cf896e6d0b3c7733ed9c739921f74 (patch)
treedb526bf30945c63b6c1a7eef7f5f53daa25eb194 /packages/website
parent1e51af1d4b68bad9363411167fd4eb959e7a32dd (diff)
downloaddexon-sol-tools-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar
dexon-sol-tools-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar.gz
dexon-sol-tools-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar.bz2
dexon-sol-tools-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar.lz
dexon-sol-tools-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar.xz
dexon-sol-tools-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar.zst
dexon-sol-tools-c34897036e8cf896e6d0b3c7733ed9c739921f74.zip
Prevent prettier issue
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/onboarding/onboarding_tooltip.tsx18
1 files changed, 8 insertions, 10 deletions
diff --git a/packages/website/ts/components/onboarding/onboarding_tooltip.tsx b/packages/website/ts/components/onboarding/onboarding_tooltip.tsx
index 74fc6f715..d8065625d 100644
--- a/packages/website/ts/components/onboarding/onboarding_tooltip.tsx
+++ b/packages/website/ts/components/onboarding/onboarding_tooltip.tsx
@@ -10,16 +10,14 @@ export interface OnboardingTooltipProps extends OnboardingCardProps {
pointerDirection?: PointerDirection;
}
-export const OnboardingTooltip: React.StatelessComponent<OnboardingTooltipProps> = ({
- pointerDirection,
- className,
- ...cardProps,
-}) => (
- <Pointer className={className} direction={pointerDirection}>
- <OnboardingCard {...cardProps} />
- </Pointer>
-);
-
+export const OnboardingTooltip: React.StatelessComponent<OnboardingTooltipProps> = props => {
+ const { pointerDirection, className, ...cardProps } = props;
+ return (
+ <Pointer className={className} direction={pointerDirection}>
+ <OnboardingCard {...cardProps} />
+ </Pointer>
+ );
+};
OnboardingTooltip.defaultProps = {
pointerDirection: 'left',
};