aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-18 05:43:37 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-18 05:43:37 +0800
commit039b95c8c1423bb165cb18b48a6ee3671603fb1a (patch)
treeb70923f7db7fd8c1c2abc58cd7f08d63fea3eb71 /packages/website
parent024e503657dd4ce7f678a850c834cec464e6a8b2 (diff)
downloaddexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.tar
dexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.tar.gz
dexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.tar.bz2
dexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.tar.lz
dexon-sol-tools-039b95c8c1423bb165cb18b48a6ee3671603fb1a.tar.xz
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/website')
-rw-r--r--packages/website/ts/@next/components/button.tsx5
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) {