From e17bc96e330077454172e9750053491faeccc8fd Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 5 Feb 2021 17:16:52 +0100 Subject: move SettingsPageButton to IconPageButton in ui.tsx --- components/ui.tsx | 23 +++++++++++++++++++++++ pages/settings.tsx | 36 +++++++----------------------------- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/components/ui.tsx b/components/ui.tsx index 2523745..11b9ddd 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -59,6 +59,29 @@ export function Button(props: { ; } +export function IconLabelButton(props: { + text: string; + icon: ReactNode; + onclick?: () => void; +}) { + return +} + export function Input(props: { label?: string; style?: CSSProperties; diff --git a/pages/settings.tsx b/pages/settings.tsx index 51f7c3f..5569eb4 100644 --- a/pages/settings.tsx +++ b/pages/settings.tsx @@ -1,8 +1,8 @@ -import { CSSProperties, ReactNode } from 'react'; +import { CSSProperties } from 'react'; import { NavBar } from '../components/navbar'; import { CenteredPage, PageTitle } from '../components/page'; -import { Vierkant, Button } from '../components/ui'; +import { Vierkant, IconLabelButton } from '../components/ui'; import { AccountAvatar } from '../components/account'; import { CurrentGameSettings } from '../components/gameSettings'; @@ -15,28 +15,6 @@ var SettingsSubsectionStyle: CSSProperties = { minHeight: 40 }; -function SettingsPageButton(props: { - text: string; - icon: ReactNode; - onclick?: () => void; -}) { - return -} - export default function SettingsPage() { return (
@@ -47,25 +25,25 @@ export default function SettingsPage() {

Account

- }/> + }/>
- }/> + }/>
Gebruikersnaam

Hier staat hij dan

- }/> - }/> + }/> + }/>
Email

******@example.com

- }/> + }/>
Wachtwoord
-- cgit v1.2.3