From 7e9377c2e58c26d889a0561aa6523c44803aa909 Mon Sep 17 00:00:00 2001
From: Pierre Ferreira
Date: Fri, 10 Nov 2023 14:37:05 +0100
Subject: [PATCH] =?UTF-8?q?ajout=20des=20param=C3=A8tres=20dans=20la=20pag?=
=?UTF-8?q?e=20de=20jeu,=20pour=20changer=20la=20langue=20par=20exemple.?=
=?UTF-8?q?=20bug=20au=20niveau=20des=20traductions=20et=20des=20navigatio?=
=?UTF-8?q?ns=20:=20la=20langue=20semble=20=C3=AAtre=20reset=20:bug:?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
cryptide_project/src/Pages/InGame.tsx | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx
index 095f185..3df1915 100644
--- a/cryptide_project/src/Pages/InGame.tsx
+++ b/cryptide_project/src/Pages/InGame.tsx
@@ -28,9 +28,12 @@ import Offcanvas from 'react-bootstrap/Offcanvas';
/* Model */
import Stub from '../source/Stub';
+import { HiLanguage } from 'react-icons/hi2';
+import { Nav, NavDropdown } from 'react-bootstrap';
+import { FormattedMessage } from 'react-intl';
//@ts-ignore
-const InGame = ({locale}) => {
+const InGame = ({locale, changeLocale}) => {
const [showChoiceBar, setShowChoiceBar] = useState(false);
const theme = useTheme();
@@ -49,6 +52,10 @@ const InGame = ({locale}) => {
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()
@@ -67,6 +74,14 @@ const InGame = ({locale}) => {
}
};
+ const handleChangeS = () => {
+ if (showS){
+ handleCloseS()
+ }
+ else {
+ handleShowS()
+ }
+ };
/* Windows open */
//@ts-ignore