aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/blockIconLink.tsx
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-20 06:59:07 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-20 06:59:07 +0800
commit5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf (patch)
treeaed059ac8540233b7fbd20aa32bc3a0f21734182 /packages/website/ts/@next/components/blockIconLink.tsx
parentaa5c2c249d43c980c06d3a5541233f2407a83371 (diff)
parent125a940560a01305781bfb6754f52fa64669a6f3 (diff)
downloaddexon-sol-tools-5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf.tar
dexon-sol-tools-5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf.tar.gz
dexon-sol-tools-5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf.tar.bz2
dexon-sol-tools-5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf.tar.lz
dexon-sol-tools-5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf.tar.xz
dexon-sol-tools-5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf.tar.zst
dexon-sol-tools-5eb316f5d832d0e7ffc8a3a3858350cc13af3dcf.zip
Merge remote-tracking branch 'upstream/feature/website/0x-org' into feature/website/0x-org
# Conflicts: # packages/website/ts/@next/components/button.tsx # packages/website/ts/@next/components/definition.tsx # packages/website/ts/@next/components/hero.tsx # packages/website/ts/@next/components/sections/landing/about.tsx # packages/website/ts/@next/pages/market_maker.tsx
Diffstat (limited to 'packages/website/ts/@next/components/blockIconLink.tsx')
-rw-r--r--packages/website/ts/@next/components/blockIconLink.tsx40
1 files changed, 9 insertions, 31 deletions
diff --git a/packages/website/ts/@next/components/blockIconLink.tsx b/packages/website/ts/@next/components/blockIconLink.tsx
index 46a267889..bdcc5c29d 100644
--- a/packages/website/ts/@next/components/blockIconLink.tsx
+++ b/packages/website/ts/@next/components/blockIconLink.tsx
@@ -1,9 +1,9 @@
import * as React from 'react';
-import {withRouter} from 'react-router-dom';
+import { withRouter } from 'react-router-dom';
import styled from 'styled-components';
-import {Button} from 'ts/@next/components/button';
-import {Icon} from 'ts/@next/components/icon';
+import { Button } from 'ts/@next/components/button';
+import { Icon } from 'ts/@next/components/icon';
interface Props {
icon?: string;
@@ -16,48 +16,26 @@ interface Props {
class BaseComponent extends React.PureComponent<Props> {
public onClick = (): void => {
- const {
- linkAction,
- linkUrl,
- } = this.props;
+ const { linkAction, linkUrl } = this.props;
if (linkAction) {
linkAction();
} else {
this.props.history.push(linkUrl);
}
- }
+ };
public render(): React.ReactNode {
- const {
- icon,
- iconComponent,
- linkUrl,
- linkAction,
- title,
- linkLabel,
- } = this.props;
+ const { icon, iconComponent, linkUrl, linkAction, title, linkLabel } = this.props;
return (
<Wrap onClick={this.onClick}>
<div>
- <Icon
- name={icon}
- component={iconComponent}
- size="large"
- margin={[0, 0, 'default', 0]}
- />
+ <Icon name={icon} component={iconComponent} size="large" margin={[0, 0, 'default', 0]} />
- <Title>
- {title}
- </Title>
+ <Title>{title}</Title>
- <Button
- isWithArrow={true}
- isTransparent={true}
- href={linkUrl}
- onClick={linkAction}
- >
+ <Button isWithArrow={true} isTransparent={true} href={linkUrl} onClick={linkAction}>
{linkLabel}
</Button>
</div>