aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/blockIconLink.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/@next/components/blockIconLink.tsx')
-rw-r--r--packages/website/ts/@next/components/blockIconLink.tsx37
1 files changed, 11 insertions, 26 deletions
diff --git a/packages/website/ts/@next/components/blockIconLink.tsx b/packages/website/ts/@next/components/blockIconLink.tsx
index 42b260731..7033ec88d 100644
--- a/packages/website/ts/@next/components/blockIconLink.tsx
+++ b/packages/website/ts/@next/components/blockIconLink.tsx
@@ -1,15 +1,15 @@
import * as React from 'react';
import styled from 'styled-components';
-import {Button, Link} from 'ts/@next/components/button';
+import {Button} from 'ts/@next/components/button';
import {Icon} from 'ts/@next/components/icon';
interface Props {
icon: string;
title: string;
linkLabel: string;
- linkUrl?: string;
- onClick?: () => void;
+ linkUrl: string;
+ linkAction: () => void;
}
export const BlockIconLink = (props: Props) => (
@@ -25,29 +25,14 @@ export const BlockIconLink = (props: Props) => (
{props.title}
</Title>
- {props.linkUrl &&
- <Link
- isWithArrow={true}
- isTransparent={true}
- isNoBorder={true}
- href={props.linkUrl}
- onClick={props.onClick}
- >
- {props.linkLabel}
- </Link>
- }
-
- {props.onClick &&
- <Button
- isWithArrow={true}
- isTransparent={true}
- isNoBorder={true}
- href={props.linkUrl}
- onClick={props.onClick}
- >
- {props.linkLabel}
- </Button>
- }
+ <Button
+ isWithArrow={true}
+ isTransparent={true}
+ href={props.linkUrl}
+ onClick={props.linkAction}
+ >
+ {props.linkLabel}
+ </Button>
</div>
</Wrap>
);