aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/ui.tsx3
-rw-r--r--pages/user.tsx2
2 files changed, 3 insertions, 2 deletions
diff --git a/components/ui.tsx b/components/ui.tsx
index 5717928..e2d7f41 100644
--- a/components/ui.tsx
+++ b/components/ui.tsx
@@ -75,8 +75,9 @@ export function IconLabelButton(props: {
icon: ReactNode;
onclick?: () => void;
style?: CSSProperties;
+ href?: string;
}) {
- return <Button onclick={props.onclick} style={{
+ return <Button onclick={props.onclick} href={props.href} style={{
display: "inline-block",
verticalAlign: "top",
padding: 8,
diff --git a/pages/user.tsx b/pages/user.tsx
index 6462109..d0c6f5b 100644
--- a/pages/user.tsx
+++ b/pages/user.tsx
@@ -141,7 +141,7 @@ export default function AccountPage() {
{
ownPage ?
<div>
- <IconLabelButton icon={<SettingsOutlinedIcon/>} text="Instellingen"/>
+ <IconLabelButton icon={<SettingsOutlinedIcon/>} href="/settings" text="Instellingen"/>
<IconLabelButton icon={<EditOutlinedIcon/>} text="Status bewerken"/>
</div> :
<div>