diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-10 18:47:32 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-10 18:47:32 +0100 |
commit | 9a72d2310682dd0dcb0f9296273fca93591d8a31 (patch) | |
tree | 900ec9521f22cfa16903ec7c4374949a84663824 | |
parent | 1bfee312bf6a176f50bc6751ad6d3cb8a80be5d8 (diff) |
link settings button on self account page to settings
-rw-r--r-- | components/ui.tsx | 3 | ||||
-rw-r--r-- | pages/user.tsx | 2 |
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> |