diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-18 05:43:37 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-18 05:43:37 +0800 |
commit | 039b95c8c1423bb165cb18b48a6ee3671603fb1a (patch) | |
tree | b70923f7db7fd8c1c2abc58cd7f08d63fea3eb71 /packages | |
parent | 024e503657dd4ce7f678a850c834cec464e6a8b2 (diff) | |
download | dexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.tar.gz dexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.tar.zst dexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.zip |
Janky but didn't want to mess anything else up, send in useAnchorTag boolean to force using anchortag
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 5 |
1 files 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) { |