From 039b95c8c1423bb165cb18b48a6ee3671603fb1a Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Mon, 17 Dec 2018 13:43:37 -0800 Subject: Janky but didn't want to mess anything else up, send in useAnchorTag boolean to force using anchortag --- packages/website/ts/@next/components/button.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index 39c080f0b..4c8c0361e 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -22,13 +22,14 @@ interface ButtonInterface { to?: string; onClick?: () => any; theme?: ThemeInterface; + useAnchorTag?: boolean; } export const Button = (props: ButtonInterface) => { - const { children, href, isWithArrow, to } = props; + const { children, href, isWithArrow, to, useAnchorTag } = props; let linkElem; - if (href) { + if (href || useAnchorTag) { linkElem = 'a'; } if (to) { -- cgit v1.2.3