From c8a4523ea2f0a9d40a9fb2fb1dca01065c2e6ca1 Mon Sep 17 00:00:00 2001
From: lonkaars <l.leblansch@gmail.com>
Date: Fri, 15 Jan 2021 16:20:49 +0100
Subject: login / button changes / account homepage

---
 src/components/ui.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/components/ui.tsx')

diff --git a/src/components/ui.tsx b/src/components/ui.tsx
index c2ce35e..37c24b3 100644
--- a/src/components/ui.tsx
+++ b/src/components/ui.tsx
@@ -31,15 +31,17 @@ export function Button(props: {
 	text?: string;
 	children?: ReactNode;
 	style?: CSSProperties;
+	href?: string;
 	onclick?: (() => void); })
 {
-	return <div onClick={props.onclick} style={{
+	return <a onClick={props.onclick} href={props.href} style={{
 		padding: props.text ? 8 : 16,
 		textAlign: props.text ? "center" : "left",
 		borderRadius: 8,
 		backgroundColor: "var(--disk-a)",
 		cursor: "pointer",
 		position: "relative",
+		textDecoration: "none",
 		...props.style
 	}}>
 	{ 
@@ -51,7 +53,7 @@ export function Button(props: {
 			: undefined
 	}
 	{ props.children }
-	</div>;
+	</a>;
 }
 
 export function Input(props: {
-- 
cgit v1.2.3

