diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-21 07:05:19 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-21 07:05:19 +0800 |
commit | c34897036e8cf896e6d0b3c7733ed9c739921f74 (patch) | |
tree | db526bf30945c63b6c1a7eef7f5f53daa25eb194 /packages/website | |
parent | 1e51af1d4b68bad9363411167fd4eb959e7a32dd (diff) | |
download | dexon-0x-contracts-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar.gz dexon-0x-contracts-c34897036e8cf896e6d0b3c7733ed9c739921f74.tar.zst dexon-0x-contracts-c34897036e8cf896e6d0b3c7733ed9c739921f74.zip |
Prevent prettier issue
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/components/onboarding/onboarding_tooltip.tsx | 18 |
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', }; |