From 81690d1ce508fc40ab90aff3539359efe7a93dba Mon Sep 17 00:00:00 2001
From: Ezekiel Aquino <ezekiel@bakkenbaeck.no>
Date: Thu, 13 Dec 2018 16:39:03 +0100
Subject: Removes <Link> component, clean up Button.tsx

---
 .../website/ts/@next/components/blockIconLink.tsx  | 37 +++++++---------------
 1 file changed, 11 insertions(+), 26 deletions(-)

(limited to 'packages/website/ts/@next/components/blockIconLink.tsx')

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>
 );
-- 
cgit v1.2.3

