From 93f24011f9613b7785b37dc4b0c963d9be22ba30 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 21 Apr 2021 09:17:48 +0200 Subject: more components without inline css --- components/gameBar.tsx | 53 +++++++++++--------------------------------------- 1 file changed, 11 insertions(+), 42 deletions(-) (limited to 'components/gameBar.tsx') diff --git a/components/gameBar.tsx b/components/gameBar.tsx index a3479d5..9a7ca59 100644 --- a/components/gameBar.tsx +++ b/components/gameBar.tsx @@ -1,5 +1,5 @@ -import { CSSProperties, ReactNode } from 'react'; -import { Bubble, Vierkant } from './ui'; +import { ReactNode } from 'react'; +import { Vierkant } from './ui'; import ExitToAppRoundedIcon from '@material-ui/icons/ExitToAppRounded'; import NavigateBeforeRoundedIcon from '@material-ui/icons/NavigateBeforeRounded'; @@ -9,21 +9,17 @@ import SettingsRoundedIcon from '@material-ui/icons/SettingsRounded'; function GameBarModule(props: { children?: ReactNode; onclick?: () => void; + className?: string; }) { return {props.children} ; } -var GameBarSpacer = () =>
; - -var GameBarAlignStyle: CSSProperties = { - display: 'inline-block', -}; - export function GameBar(props: { turn: boolean; player1: boolean; @@ -32,7 +28,7 @@ export function GameBar(props: { }) { return
-
+
{props.active &&
} @@ -44,49 +40,22 @@ export function GameBar(props: { : 'Tegenstander'}
-
- - 0-0 - +
+ 0-0
-
+
- - - - 00:00 - + + 00:00 - - - -- cgit v1.2.3