From 6d66476d35b67f91563c1a06f25fea9fc2fb4320 Mon Sep 17 00:00:00 2001
From: Steve Klebanoff <steve.klebanoff@gmail.com>
Date: Mon, 17 Dec 2018 13:44:08 -0800
Subject: Action takes in useAnchorTag

---
 packages/website/ts/@next/components/definition.tsx | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

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

diff --git a/packages/website/ts/@next/components/definition.tsx b/packages/website/ts/@next/components/definition.tsx
index da26ee140..be0973bdd 100644
--- a/packages/website/ts/@next/components/definition.tsx
+++ b/packages/website/ts/@next/components/definition.tsx
@@ -7,7 +7,9 @@ import { Heading, Paragraph } from 'ts/@next/components/text';
 
 interface Action {
     label: string;
-    url: string;
+    url?: string;
+    onClick?: () => void;
+    useAnchorTag?: boolean;
 }
 
 interface Props {
@@ -46,7 +48,14 @@ export const Definition = (props: Props) => (
             {props.actions && (
                 <LinkWrap>
                     {props.actions.map((item, index) => (
-                        <Button key={`dlink-${index}`} href={item.url} isWithArrow={true} isAccentColor={true}>
+                        <Button
+                            key={`dlink-${index}`}
+                            href={item.url}
+                            onClick={item.onClick}
+                            isWithArrow={true}
+                            isAccentColor={true}
+                            useAnchorTag={item.useAnchorTag}
+                        >
                             {item.label}
                         </Button>
                     ))}
-- 
cgit 

