From 41b8ba275b88a3f5c7fe105604b3f09e9bfa8c55 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 7 Jan 2021 10:54:37 +0100 Subject: spelregels aanpassen knop doet het --- src/components/gameSettings.tsx | 44 ++++++++++++++++++++++++++++++++++++----- src/components/ui.tsx | 29 +++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 5 deletions(-) (limited to 'src/components') diff --git a/src/components/gameSettings.tsx b/src/components/gameSettings.tsx index 86dea5b..bd28221 100644 --- a/src/components/gameSettings.tsx +++ b/src/components/gameSettings.tsx @@ -2,13 +2,47 @@ // gameID: string; // } +import { Button } from './ui'; + +import BuildRoundedIcon from '@material-ui/icons/BuildRounded'; + export function CurrentGameSettings(/*props: CurrentGameSettingsProps*/) { - return
-

- Geen tijdslimiet
- Standaardregels
- Gerangschikt + return

+

+ Geen tijdslimiet
+ Standaardregels
+ Gerangschikt

+
; } diff --git a/src/components/ui.tsx b/src/components/ui.tsx index 558eab8..d869151 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -24,3 +24,32 @@ export function Vierkant(props: VierkantProps) { }} href={props.href}>{props.children} } +interface ButtonProps { + text?: string; + children?: ReactNode; + style?: CSSProperties; + onclick?: (() => void); +} + +export function Button(props: ButtonProps) { + return
+ { + props.text ? + {props.text} + : undefined + } + { props.children } +
; +} + -- cgit v1.2.3