diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-15 16:20:49 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-15 16:20:49 +0100 |
commit | c8a4523ea2f0a9d40a9fb2fb1dca01065c2e6ca1 (patch) | |
tree | 3187629b8a4e4afe026d83833641eee7a661ae27 /src/components | |
parent | 1403e2cf7eddd4f8793c273452c6659d1e972d31 (diff) |
login / button changes / account homepage
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/ui.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
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: { |