From d3d6e287e0e0e4d74044627a508d324dc27a1f94 Mon Sep 17 00:00:00 2001
From: Pierre Ferreira
Date: Fri, 10 Nov 2023 11:52:43 +0100
Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20d'un=20nouvelle=20onglet=20pour?=
=?UTF-8?q?=20l'affichage=20des=20informations=20durant=20la=20partie=20:a?=
=?UTF-8?q?rt:?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
cryptide_project/src/Pages/InGame.tsx | 49 ++-------------------------
1 file changed, 2 insertions(+), 47 deletions(-)
diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx
index 38946bc..5d5a52a 100644
--- a/cryptide_project/src/Pages/InGame.tsx
+++ b/cryptide_project/src/Pages/InGame.tsx
@@ -26,40 +26,10 @@ import { Link } from 'react-router-dom';
import Button from 'react-bootstrap/Button';
import Offcanvas from 'react-bootstrap/Offcanvas';
-/* Model */
-import Stub from '../model/Stub';
-import { HiLanguage } from 'react-icons/hi2';
-import { Nav, NavDropdown } from 'react-bootstrap';
-import { FormattedMessage } from 'react-intl';
-import Color from '../model/Color';
-
-//@ts-ignore
-const InGame = ({locale, changeLocale}) => {
-
- const players = [
- { state: Replay, name: 'Dummy' },
- { state: Replay, name: 'Boat' },
- { state: Replay, name: 'Bot-tom' },
- { state: Replay, name: 'Dummy' },
- { state: Replay, name: 'Boat' },
- { state: Replay, name: 'Bot-tom' },
- { state: Replay, name: 'Dummy' },
- { state: Replay, name: 'Boat' },
- { state: Replay, name: 'Bot-tom' },
- { state: Replay, name: 'Dummy' },
- { state: Replay, name: 'Boat' },
- { state: Replay, name: 'Bot-tom' },
- { state: Replay, name: 'Dummy' },
- { state: Replay, name: 'Boat' },
- { state: Replay, name: 'Bot-tom' }
- // Ajouter d'autres joueurs au besoin
- ];
-
-
- const theme = useTheme();
-
+const InGame = () => {
const [showChoiceBar, setShowChoiceBar] = useState(false);
+ const theme = useTheme();
const handleNodeClick = (shouldShowChoiceBar: boolean) => {
setShowChoiceBar(shouldShowChoiceBar);
};
@@ -75,10 +45,6 @@ const InGame = ({locale, changeLocale}) => {
const handleCloseP = () => setShowP(false);
const handleShowP = () => setShowP(true);
- const [showS, setShowS] = useState(false);
- const handleCloseS = () => setShowS(false);
- const handleShowS = () => setShowS(true);
-
const handleChange = () => {
if (show){
handleClose()
@@ -97,14 +63,6 @@ const InGame = ({locale, changeLocale}) => {
}
};
- const handleChangeS = () => {
- if (showS){
- handleCloseS()
- }
- else {
- handleShowS()
- }
- };
/* Windows open */
//@ts-ignore
@@ -112,9 +70,6 @@ const InGame = ({locale, changeLocale}) => {
window.open(url);
};
- const [SwitchEnabled, setSwitchEnabled] = useState(false)
- const indices = Stub.GenerateIndice()
-
return (