From de2853cc4793b7948b94525a0a4f964e49943131 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 21 Apr 2021 09:57:40 +0200 Subject: even more components without inline css --- components/gameSettings.tsx | 60 ++++++++++++--------------------------------- 1 file changed, 15 insertions(+), 45 deletions(-) (limited to 'components/gameSettings.tsx') diff --git a/components/gameSettings.tsx b/components/gameSettings.tsx index bb01284..13462be 100644 --- a/components/gameSettings.tsx +++ b/components/gameSettings.tsx @@ -1,5 +1,5 @@ import axios from 'axios'; -import { Component, CSSProperties, ReactNode, useEffect, useState } from 'react'; +import { ReactNode, useEffect, useState } from 'react'; import { ruleset, userPreferences } from '../api/api'; import { DialogBox } from './dialogBox'; @@ -71,24 +71,15 @@ function GameSettingsSection(props: { id={props.id} className='pad-m editableRulesSection' > - + {props.title} - +
+ +
{props.children}
; } @@ -96,19 +87,10 @@ function GameSettingsSection(props: { function GameRule(props: { title: string; description: string; - style?: CSSProperties; }) { - return
-

{props.title}

-

{props.description}

+ return
+

{props.title}

+

{props.description}

; } @@ -161,28 +143,16 @@ export function EditGameSettings(props: editGameSettingsProps) { />
- + Timer gebruiken voor bijde spelers - {false && -
+ {true && +
- +
}