From 6d66476d35b67f91563c1a06f25fea9fc2fb4320 Mon Sep 17 00:00:00 2001 From: Steve Klebanoff 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') 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 && ( {props.actions.map((item, index) => ( - ))} -- cgit v1.2.3