= ({img = Person, state= Person,
if (IsActualPlayer && !askedWrong){
setPlayerTouched(index)
setTouchedPlayer(index)
+ //setIsClicked(!isClicked);
}
}
+
+ //* Code pour le cercle
+
+ //const [isClicked, setIsClicked] = useState(false); // État du bouton, par défaut false
+ const handleClick = () => {
+ onTouch();
+ };
+ const circleStyle: React.CSSProperties = {
+ backgroundColor: touchedPlayer == index && showCircle ? 'gold' : positionToColor(index), // Changement de la couleur en fonction de la condition
+ borderRadius: '50%',
+ width: '80px',
+ height: '80px',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ position: 'relative',
+ objectFit: 'cover'
+ };
+
+ const circleStyleInt: React.CSSProperties = {
+
+ backgroundColor:'white',
+ borderRadius: '50%',
+ width: '70px',
+ height: '70px',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ position: 'relative',
+ objectFit: 'cover'
+ }
+
+ const imageStyle: React.CSSProperties = {
+ borderRadius: '50%',
+ width: '60px',
+ height: '60px',
+ objectFit: 'cover', // image est ajustée pour couvrir le cercle
+ position: 'relative',
+ };
return (
-
-
onTouch()}>
-

-
{name}
-
- {IsActualPlayer && (
- (touchedPlayer == index && showCircle) ?(
-
-

-
- ): showCircle &&
- (
-
-

-
- )
- )}
-
+
+ {/*
*/}
+
handleClick()}>
+
+

+
+ {/*
*/}
+
+
+
{actualPlayerIndex !== index ? (name.substring(0, name.length - 2).length > 7 ? name.substring(0, name.length - 2).substring(0, 7) + '...' : name) : 'vous'}
);
}
export default PersonStatus;
+
+
+
+
+// {IsActualPlayer && (
+// (touchedPlayer == index && showCircle) ?(
+//
+//

+//
+// ): showCircle &&
+// (
+//
+//

+//
+// )
+// )}
\ No newline at end of file
diff --git a/cryptide_project/src/Components/PlayerList.tsx b/cryptide_project/src/Components/PlayerList.tsx
index 6d0da30..856d73d 100644
--- a/cryptide_project/src/Components/PlayerList.tsx
+++ b/cryptide_project/src/Components/PlayerList.tsx
@@ -29,23 +29,23 @@ const PlayerList: React.FC
= ({ players, playerTouched, setPlay
return (
-
+
{
//@ts-ignore
players.map((player, index) => (
//player.id!=socket.id &&
+ state={Person}
+ key={index}
+ name={player.pseudo
+ + " " +
+ positionToEmoji(index, true)}
+ playerTouched={playerTouched}
+ setPlayerTouched={setPlayerTouched}
+ index={index}
+ showCircle={true}
+ playerIndex={playerIndex}
+ askedWrong={askedWrong}/>
))
}
@@ -56,28 +56,29 @@ const PlayerList: React.FC
= ({ players, playerTouched, setPlay
alignItems:"center",
margin: 10
}}>
- {(playerTouched == players.length)
- ?(
-
- ):
- (
-
- )
- }
+
+ {(playerTouched == players.length)
+ ?(
+
+ ):
+ (
+
+ )
+ }
diff --git a/cryptide_project/src/Pages/InGame.css b/cryptide_project/src/Pages/InGame.css
index 81b99e3..c215dff 100644
--- a/cryptide_project/src/Pages/InGame.css
+++ b/cryptide_project/src/Pages/InGame.css
@@ -72,8 +72,8 @@
.playerlistDiv{
position: absolute;
z-index: 1;
- left: 10px;
- top :50px;
+ left: 30px;
+ top : 30px;
}
.nbLaps{ /*nombre de tour*/
diff --git a/cryptide_project/src/Style/Global.css b/cryptide_project/src/Style/Global.css
index 388b659..f97cf30 100644
--- a/cryptide_project/src/Style/Global.css
+++ b/cryptide_project/src/Style/Global.css
@@ -59,6 +59,16 @@
justify-content: center;
}
+.playerNameDisplay{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color:#fff;
+ border: solid 3px #0064E0;
+ border-radius: 15px;
+ width: 100%;
+}
+
/**Form**/
.form-container {
/* background-color: #D7D4C6; */
@@ -74,6 +84,8 @@ form{
columns: 2 auto;
}
+
+
/* LeaderBoard */
.LeaderBoardiv{
border: solid;
diff --git a/cryptide_project/src/server/db/socialgraph.db b/cryptide_project/src/server/db/socialgraph.db
index 9d9edd5cb064c69a20f6a3ba7d3bab72f0e4de64..b1d3383de7be3ace660bfabbbc2e2c75ed4f517a 100644
GIT binary patch
delta 401
zcmZp8z}WDBae_4CE+EUqrLx&j;2&pwi8v<%uVW*tF(YGQ
zRccX5Woc%9L1A%9T6#uSc1~`2MRHkEo{CYDilKpuk#}HNvTtZ$a7vb6glA>4p+{t>
zerZuzkcn52uTe;me@U8glDC&*VwPS~NNKQPqHCmoxRHU8v96(!u7Rn7p^25TnU#^5
zuyB$X&{kQXt(zB1C9?AI^V>4;pWu(-f6w2-Z@XDQL7QJ*j@c29i^M0#=`5=TTzd
zx8hOS%w-_PQb;=BwD
z4E+3gli34gnfUWI3p#l4bFvGwF>r8jFp5tukMCvX=P#Jdo&c0B0LpqnWH~uGfwGnP
F?EuyeZOH%t
delta 148
zcmV;F0Biq%-~oW(0gxL3j*%Qg0gka?qz?lQ3YwD#5FN8IAa)9~ni^^a3=R)m01wCy
zTo3OLgtHPLD-V&7A(LD$s0I!UWB?C3vkWj643UsT1wjOX1p$+-8a%V5JTDUg5|h&m&KvfTud2fe>
CPbsbd
From 6d390d0341a91dd7897bf8aa91494929ba3e516f Mon Sep 17 00:00:00 2001
From: Thomas Chazot
Date: Tue, 5 Dec 2023 15:56:39 +0100
Subject: [PATCH 11/26] variable d'environnement pour le path avec le /
---
cryptide_project/src/Components/GraphContainer.tsx | 4 ++--
cryptide_project/src/Components/LobbyContainer.tsx | 2 +-
cryptide_project/src/Components/NavBar.tsx | 4 ++--
cryptide_project/src/Pages/InGame.tsx | 2 +-
cryptide_project/src/Pages/Lobby.tsx | 10 +++++-----
cryptide_project/src/Pages/LoginForm.tsx | 2 +-
cryptide_project/src/Pages/NewPlay.tsx | 10 +++++-----
cryptide_project/src/Pages/Play.tsx | 12 ++++++------
cryptide_project/src/Pages/Profile.tsx | 2 +-
cryptide_project/src/Pages/SignUpForm.tsx | 2 +-
10 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx
index 83697dd..634f495 100644
--- a/cryptide_project/src/Components/GraphContainer.tsx
+++ b/cryptide_project/src/Components/GraphContainer.tsx
@@ -811,7 +811,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS
socket.off("put imossible grey")
socket.off("who plays")
- navigate(`${basePath}/endgame`)
+ navigate(`/${basePath}/endgame`)
}
}
})
@@ -1020,7 +1020,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS
catch(error){
console.log(error);
}
- navigate(`${basePath}/endgame?solo=true+${isDaily}`)
+ navigate(`/${basePath}/endgame?solo=true+${isDaily}`)
}
}
diff --git a/cryptide_project/src/Components/LobbyContainer.tsx b/cryptide_project/src/Components/LobbyContainer.tsx
index 797cef5..ac0037c 100644
--- a/cryptide_project/src/Components/LobbyContainer.tsx
+++ b/cryptide_project/src/Components/LobbyContainer.tsx
@@ -49,7 +49,7 @@ const LobbyContainer: React.FC = ({roomNum, HeadPlayer, nbP
if (nbPlayer < 6 && !started) {
socket.off("request lobbies")
setFirst(true)
- navigate(`${basePath}/${dest}`);
+ navigate(`/${basePath}/${dest}`);
}
else if(started){
handleShowStart()
diff --git a/cryptide_project/src/Components/NavBar.tsx b/cryptide_project/src/Components/NavBar.tsx
index 5921026..75b45c6 100644
--- a/cryptide_project/src/Components/NavBar.tsx
+++ b/cryptide_project/src/Components/NavBar.tsx
@@ -37,11 +37,11 @@ function AppNavbar({changeLocale}) {
function navigateToProfile(){
- navigate(`${basePath}/profile`)
+ navigate(`/${basePath}/profile`)
}
function navigateToHome(){
- navigate(`${basePath}/`)
+ navigate(`/${basePath}/`)
}
return (
diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx
index 9b20931..099b6ea 100644
--- a/cryptide_project/src/Pages/InGame.tsx
+++ b/cryptide_project/src/Pages/InGame.tsx
@@ -68,7 +68,7 @@ const InGame = ({locale, changeLocale}) => {
if (cptNavigation % 2 == 0){
if (navigationType.toString() == "POP"){
socket.emit("player quit")
- navigate(`${basePath}/play`)
+ navigate(`/${basePath}/play`)
}
}
diff --git a/cryptide_project/src/Pages/Lobby.tsx b/cryptide_project/src/Pages/Lobby.tsx
index 572c36a..248c8cc 100644
--- a/cryptide_project/src/Pages/Lobby.tsx
+++ b/cryptide_project/src/Pages/Lobby.tsx
@@ -136,7 +136,7 @@ function Lobby() {
gameStarted = true
//socket.off("player left")
//socket.off("new player")
- navigate(`${basePath}/game?solo=false&daily=false`);
+ navigate(`/${basePath}/game?solo=false&daily=false`);
});
@@ -172,7 +172,7 @@ function Lobby() {
setIndicesData(choosenIndices)
first = true
gameStarted = true
- navigate(`${basePath}/game?solo=false&daily=false`)
+ navigate(`/${basePath}/game?solo=false&daily=false`)
});
socket.on("new player", (tab) =>{
@@ -187,17 +187,17 @@ function Lobby() {
socket.on("room full", () => {
//TODO POP UP pour quand la room est pleine
- navigate(`${basePath}/play`)
+ navigate(`/${basePath}/play`)
})
socket.on("game started", () => {
//TODO POP UP pour quand la room est pleine
- navigate(`${basePath}/play`)
+ navigate(`/${basePath}/play`)
})
socket.on("game already started", () => {
//TODO POP UP pour quand la room est pleine
- navigate(`${basePath}/play`)
+ navigate(`/${basePath}/play`)
})
socket.on("player left", (tab, i) => {
diff --git a/cryptide_project/src/Pages/LoginForm.tsx b/cryptide_project/src/Pages/LoginForm.tsx
index dde8427..764e0f5 100644
--- a/cryptide_project/src/Pages/LoginForm.tsx
+++ b/cryptide_project/src/Pages/LoginForm.tsx
@@ -37,7 +37,7 @@ const SignIn = () => {
setShowConfirmation(true);
setTimeout(async () => {
await login();
- navigate(`${basePath}/`);
+ navigate(`/${basePath}/`);
}, 1250);
}
} catch (error: any) {
diff --git a/cryptide_project/src/Pages/NewPlay.tsx b/cryptide_project/src/Pages/NewPlay.tsx
index 8c658f1..2cc7999 100644
--- a/cryptide_project/src/Pages/NewPlay.tsx
+++ b/cryptide_project/src/Pages/NewPlay.tsx
@@ -100,7 +100,7 @@ function NewPlay() {
setPersonNetworkData(networkPerson)
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`${basePath}/game?solo=true&daily=false`);
+ navigate(`/${basePath}/game?solo=true&daily=false`);
}
@@ -131,12 +131,12 @@ function NewPlay() {
useEffect(() => {
if (room !== null) {
const nouvelleURL = `/lobby?room=${room}`;
- navigate(`${basePath}${nouvelleURL}`)
+ navigate(`/${basePath}${nouvelleURL}`)
}
}, [room, navigate]);
const goBack = () => {
- navigate(`${basePath}/lobby?room=${goBackRoom}`)
+ navigate(`/${basePath}/lobby?room=${goBackRoom}`)
}
@@ -159,7 +159,7 @@ function NewPlay() {
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`${basePath}/game?solo=true&daily=true&easy=true`);
+ navigate(`/${basePath}/game?solo=true&daily=true&easy=true`);
setShowOverlay(false);
};
@@ -177,7 +177,7 @@ function NewPlay() {
const map = EnigmeDuJourCreator.createEnigme(networkPerson, choosenIndices, choosenPerson, Stub.GenerateIndice())
setDailyEnigmeData(map)
}
- navigate(`${basePath}/game?solo=true&daily=true&easy=false`);
+ navigate(`/${basePath}/game?solo=true&daily=true&easy=false`);
setShowOverlay(false);
};
diff --git a/cryptide_project/src/Pages/Play.tsx b/cryptide_project/src/Pages/Play.tsx
index e783f53..097d73d 100644
--- a/cryptide_project/src/Pages/Play.tsx
+++ b/cryptide_project/src/Pages/Play.tsx
@@ -100,7 +100,7 @@ function Play() {
setPersonNetworkData(networkPerson)
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`${basePath}/game?solo=true&daily=false`);
+ navigate(`/${basePath}/game?solo=true&daily=false`);
}
@@ -131,12 +131,12 @@ function Play() {
useEffect(() => {
if (room !== null) {
const nouvelleURL = `/lobby?room=${room}`;
- navigate(`${basePath}${nouvelleURL}`);
+ navigate(`/${basePath}${nouvelleURL}`);
}
}, [room, navigate]);
const goBack = () => {
- navigate(`${basePath}/lobby?room=${goBackRoom}`)
+ navigate(`/${basePath}/lobby?room=${goBackRoom}`)
}
@@ -159,7 +159,7 @@ function Play() {
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`${basePath}/game?solo=true&daily=true&easy=true`);
+ navigate(`/${basePath}/game?solo=true&daily=true&easy=true`);
setShowOverlay(false);
};
@@ -177,7 +177,7 @@ function Play() {
const map = EnigmeDuJourCreator.createEnigme(networkPerson, choosenIndices, choosenPerson, Stub.GenerateIndice())
setDailyEnigmeData(map)
}
- navigate(`${basePath}/game?solo=true&daily=true&easy=false`);
+ navigate(`/${basePath}/game?solo=true&daily=true&easy=false`);
setShowOverlay(false);
};
@@ -240,7 +240,7 @@ function Play() {
-
+
diff --git a/cryptide_project/src/Pages/Profile.tsx b/cryptide_project/src/Pages/Profile.tsx
index a59ad2e..91e1bf9 100644
--- a/cryptide_project/src/Pages/Profile.tsx
+++ b/cryptide_project/src/Pages/Profile.tsx
@@ -186,7 +186,7 @@ const Profile = () => {
}
handleCloseDeleteModal();
- navigate(`${basePath}/`)
+ navigate(`/${basePath}/`)
} else {
console.error('Phrase de confirmation incorrecte.');
diff --git a/cryptide_project/src/Pages/SignUpForm.tsx b/cryptide_project/src/Pages/SignUpForm.tsx
index 9e29449..f7f2a1a 100644
--- a/cryptide_project/src/Pages/SignUpForm.tsx
+++ b/cryptide_project/src/Pages/SignUpForm.tsx
@@ -35,7 +35,7 @@ const SignUp = () => {
setShowConfirmation(true);
setTimeout(() => {
- navigate(`${basePath}/login`); // 3 secondes avant de rediriger vers la page de connexion
+ navigate(`/${basePath}/login`); // 3 secondes avant de rediriger vers la page de connexion
}, 1250);
}
} catch (error: any) {
From bc24e060e5b3f9835d81d06f821aa1870e1230b2 Mon Sep 17 00:00:00 2001
From: Thomas Chazot
Date: Tue, 5 Dec 2023 16:01:12 +0100
Subject: [PATCH 12/26] variable d'environnement pour le path avec le /
---
cryptide_project/src/Components/GraphContainer.tsx | 4 ++--
cryptide_project/src/Components/LobbyContainer.tsx | 2 +-
cryptide_project/src/Components/NavBar.tsx | 4 ++--
cryptide_project/src/Pages/Lobby.tsx | 10 +++++-----
cryptide_project/src/Pages/LoginForm.tsx | 2 +-
cryptide_project/src/Pages/NewPlay.tsx | 10 +++++-----
cryptide_project/src/Pages/Play.tsx | 12 ++++++------
cryptide_project/src/Pages/Profile.tsx | 2 +-
cryptide_project/src/Pages/SignUpForm.tsx | 2 +-
9 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx
index 634f495..83697dd 100644
--- a/cryptide_project/src/Components/GraphContainer.tsx
+++ b/cryptide_project/src/Components/GraphContainer.tsx
@@ -811,7 +811,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS
socket.off("put imossible grey")
socket.off("who plays")
- navigate(`/${basePath}/endgame`)
+ navigate(`${basePath}/endgame`)
}
}
})
@@ -1020,7 +1020,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS
catch(error){
console.log(error);
}
- navigate(`/${basePath}/endgame?solo=true+${isDaily}`)
+ navigate(`${basePath}/endgame?solo=true+${isDaily}`)
}
}
diff --git a/cryptide_project/src/Components/LobbyContainer.tsx b/cryptide_project/src/Components/LobbyContainer.tsx
index ac0037c..797cef5 100644
--- a/cryptide_project/src/Components/LobbyContainer.tsx
+++ b/cryptide_project/src/Components/LobbyContainer.tsx
@@ -49,7 +49,7 @@ const LobbyContainer: React.FC = ({roomNum, HeadPlayer, nbP
if (nbPlayer < 6 && !started) {
socket.off("request lobbies")
setFirst(true)
- navigate(`/${basePath}/${dest}`);
+ navigate(`${basePath}/${dest}`);
}
else if(started){
handleShowStart()
diff --git a/cryptide_project/src/Components/NavBar.tsx b/cryptide_project/src/Components/NavBar.tsx
index 75b45c6..5921026 100644
--- a/cryptide_project/src/Components/NavBar.tsx
+++ b/cryptide_project/src/Components/NavBar.tsx
@@ -37,11 +37,11 @@ function AppNavbar({changeLocale}) {
function navigateToProfile(){
- navigate(`/${basePath}/profile`)
+ navigate(`${basePath}/profile`)
}
function navigateToHome(){
- navigate(`/${basePath}/`)
+ navigate(`${basePath}/`)
}
return (
diff --git a/cryptide_project/src/Pages/Lobby.tsx b/cryptide_project/src/Pages/Lobby.tsx
index 248c8cc..572c36a 100644
--- a/cryptide_project/src/Pages/Lobby.tsx
+++ b/cryptide_project/src/Pages/Lobby.tsx
@@ -136,7 +136,7 @@ function Lobby() {
gameStarted = true
//socket.off("player left")
//socket.off("new player")
- navigate(`/${basePath}/game?solo=false&daily=false`);
+ navigate(`${basePath}/game?solo=false&daily=false`);
});
@@ -172,7 +172,7 @@ function Lobby() {
setIndicesData(choosenIndices)
first = true
gameStarted = true
- navigate(`/${basePath}/game?solo=false&daily=false`)
+ navigate(`${basePath}/game?solo=false&daily=false`)
});
socket.on("new player", (tab) =>{
@@ -187,17 +187,17 @@ function Lobby() {
socket.on("room full", () => {
//TODO POP UP pour quand la room est pleine
- navigate(`/${basePath}/play`)
+ navigate(`${basePath}/play`)
})
socket.on("game started", () => {
//TODO POP UP pour quand la room est pleine
- navigate(`/${basePath}/play`)
+ navigate(`${basePath}/play`)
})
socket.on("game already started", () => {
//TODO POP UP pour quand la room est pleine
- navigate(`/${basePath}/play`)
+ navigate(`${basePath}/play`)
})
socket.on("player left", (tab, i) => {
diff --git a/cryptide_project/src/Pages/LoginForm.tsx b/cryptide_project/src/Pages/LoginForm.tsx
index 764e0f5..dde8427 100644
--- a/cryptide_project/src/Pages/LoginForm.tsx
+++ b/cryptide_project/src/Pages/LoginForm.tsx
@@ -37,7 +37,7 @@ const SignIn = () => {
setShowConfirmation(true);
setTimeout(async () => {
await login();
- navigate(`/${basePath}/`);
+ navigate(`${basePath}/`);
}, 1250);
}
} catch (error: any) {
diff --git a/cryptide_project/src/Pages/NewPlay.tsx b/cryptide_project/src/Pages/NewPlay.tsx
index 2cc7999..8c658f1 100644
--- a/cryptide_project/src/Pages/NewPlay.tsx
+++ b/cryptide_project/src/Pages/NewPlay.tsx
@@ -100,7 +100,7 @@ function NewPlay() {
setPersonNetworkData(networkPerson)
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`/${basePath}/game?solo=true&daily=false`);
+ navigate(`${basePath}/game?solo=true&daily=false`);
}
@@ -131,12 +131,12 @@ function NewPlay() {
useEffect(() => {
if (room !== null) {
const nouvelleURL = `/lobby?room=${room}`;
- navigate(`/${basePath}${nouvelleURL}`)
+ navigate(`${basePath}${nouvelleURL}`)
}
}, [room, navigate]);
const goBack = () => {
- navigate(`/${basePath}/lobby?room=${goBackRoom}`)
+ navigate(`${basePath}/lobby?room=${goBackRoom}`)
}
@@ -159,7 +159,7 @@ function NewPlay() {
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`/${basePath}/game?solo=true&daily=true&easy=true`);
+ navigate(`${basePath}/game?solo=true&daily=true&easy=true`);
setShowOverlay(false);
};
@@ -177,7 +177,7 @@ function NewPlay() {
const map = EnigmeDuJourCreator.createEnigme(networkPerson, choosenIndices, choosenPerson, Stub.GenerateIndice())
setDailyEnigmeData(map)
}
- navigate(`/${basePath}/game?solo=true&daily=true&easy=false`);
+ navigate(`${basePath}/game?solo=true&daily=true&easy=false`);
setShowOverlay(false);
};
diff --git a/cryptide_project/src/Pages/Play.tsx b/cryptide_project/src/Pages/Play.tsx
index 097d73d..e783f53 100644
--- a/cryptide_project/src/Pages/Play.tsx
+++ b/cryptide_project/src/Pages/Play.tsx
@@ -100,7 +100,7 @@ function Play() {
setPersonNetworkData(networkPerson)
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`/${basePath}/game?solo=true&daily=false`);
+ navigate(`${basePath}/game?solo=true&daily=false`);
}
@@ -131,12 +131,12 @@ function Play() {
useEffect(() => {
if (room !== null) {
const nouvelleURL = `/lobby?room=${room}`;
- navigate(`/${basePath}${nouvelleURL}`);
+ navigate(`${basePath}${nouvelleURL}`);
}
}, [room, navigate]);
const goBack = () => {
- navigate(`/${basePath}/lobby?room=${goBackRoom}`)
+ navigate(`${basePath}/lobby?room=${goBackRoom}`)
}
@@ -159,7 +159,7 @@ function Play() {
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
- navigate(`/${basePath}/game?solo=true&daily=true&easy=true`);
+ navigate(`${basePath}/game?solo=true&daily=true&easy=true`);
setShowOverlay(false);
};
@@ -177,7 +177,7 @@ function Play() {
const map = EnigmeDuJourCreator.createEnigme(networkPerson, choosenIndices, choosenPerson, Stub.GenerateIndice())
setDailyEnigmeData(map)
}
- navigate(`/${basePath}/game?solo=true&daily=true&easy=false`);
+ navigate(`${basePath}/game?solo=true&daily=true&easy=false`);
setShowOverlay(false);
};
@@ -240,7 +240,7 @@ function Play() {
-
+