From a3d251baadf15b412ef85e063f5fbb48fdb0f32a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 8 Jan 2021 16:49:34 +0100 Subject: 1e aangepaste spelregels dinges klaar --- src/components/gameSettings.tsx | 41 +++++++++++++++++++++++++++++++++-------- src/components/ui.tsx | 40 ++++++++++++++++++++++++++++------------ 2 files changed, 61 insertions(+), 20 deletions(-) (limited to 'src/components') diff --git a/src/components/gameSettings.tsx b/src/components/gameSettings.tsx index 19eadb7..79a5029 100644 --- a/src/components/gameSettings.tsx +++ b/src/components/gameSettings.tsx @@ -1,6 +1,6 @@ import { ReactNode } from 'react'; -import { Button, Vierkant, CheckBox } from './ui'; +import { Button, Vierkant, CheckBox, Input } from './ui'; import { DialogBox } from './dialogBox'; import BuildRoundedIcon from '@material-ui/icons/BuildRounded'; @@ -46,18 +46,29 @@ export function CurrentGameSettings(/*props: CurrentGameSettingsProps*/) { ; } -interface GameSettingsSectionProps { +function GameSettingsSection(props: { children?: ReactNode; title: string; state: boolean; -} - -function GameSettingsSection(props: GameSettingsSectionProps) { +}) { return -
{props.children}
+ {props.title} + +
{props.children}
} @@ -68,8 +79,22 @@ export function EditGameSettings() { maxHeight: 500, overflowY: "scroll" }}> - +
+ + + +
+ + Timer gebruiken voor bijde spelers
; diff --git a/src/components/ui.tsx b/src/components/ui.tsx index a9ca479..4f836c2 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -54,23 +54,35 @@ export function Button(props: { ; } -export function Input(props: { label?: string }) { +export function Input(props: { + label?: string, + style?: CSSProperties, + type?: string +}) { + return +} + +export function SearchBar(props: { label?: string }) { return
-
{ state = { on: this.props.state || false } public toggle = () => this.setState({ on: !this.state.on }) render() { - return
+ return
{ this.state.on ? : -- cgit v1.2.3