From 3171a97827e8356e29d09dd70700b06ad11bb305 Mon Sep 17 00:00:00 2001 From: djmil Date: Thu, 9 Nov 2023 18:20:19 +0100 Subject: [PATCH] ammend --- webapp/src/container/Games.css | 3 ++- webapp/src/container/Games.jsx | 42 ++++++++++++++++++++-------------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/webapp/src/container/Games.css b/webapp/src/container/Games.css index 54be4a0..3d8680a 100644 --- a/webapp/src/container/Games.css +++ b/webapp/src/container/Games.css @@ -63,7 +63,8 @@ .ViewProvider { display: flex; - flex-direction: column; + flex-flow: column; + height: 340px; justify-content: center; align-items: center; } diff --git a/webapp/src/container/Games.jsx b/webapp/src/container/Games.jsx index fcdeed3..0ec98b8 100644 --- a/webapp/src/container/Games.jsx +++ b/webapp/src/container/Games.jsx @@ -3,9 +3,7 @@ import React from 'react'; import { NavLink, Routes, Route } from 'react-router-dom'; import NewGame from './games/view/NewGame'; -import GameProposals from './games/view/GameProposals'; -import ActiveGames from './games/view/ActiveGames'; -import GamesArchive from './games/view/GamesArchive'; +import GameSelector from './games/view/GameSelector'; import Create from './games/action/Create'; import Reject from './games/action/Reject'; @@ -27,7 +25,7 @@ export default function Games({ context }) { -
+
@@ -47,24 +45,34 @@ export default function Games({ context }) { }; function ViewSelector() { + // TODO: counter Wating for YOU + return ( ) } -function ViewProvider() { +function ViewProvider(/*todo: dispatchGame*/) { return (
- } /> - } /> - } /> - } /> + } /> + + console.log("GameProposal", uuid)} + /> + } /> + + } /> + } />
) @@ -74,10 +82,10 @@ function ActionPanel() { return (
- } /> - , , ]} /> - , , ]} /> - , ]} /> + } /> + , , ]} /> + , , ]} /> + , ]} />
)