|
|
@ -100,7 +100,7 @@ function Play() {
|
|
|
|
setPersonNetworkData(networkPerson)
|
|
|
|
setPersonNetworkData(networkPerson)
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
navigate(`${basePath}/game?solo=true&daily=false`);
|
|
|
|
navigate(`game?solo=true&daily=false`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -136,7 +136,7 @@ function Play() {
|
|
|
|
}, [room, navigate]);
|
|
|
|
}, [room, navigate]);
|
|
|
|
|
|
|
|
|
|
|
|
const goBack = () => {
|
|
|
|
const goBack = () => {
|
|
|
|
navigate(`${basePath}/lobby?room=${goBackRoom}`)
|
|
|
|
navigate(`lobby?room=${goBackRoom}`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ function Play() {
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
setIndicesData(choosenIndices)
|
|
|
|
|
|
|
|
|
|
|
|
navigate(`${basePath}/game?solo=true&daily=true&easy=true`);
|
|
|
|
navigate(`game?solo=true&daily=true&easy=true`);
|
|
|
|
setShowOverlay(false);
|
|
|
|
setShowOverlay(false);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -177,7 +177,7 @@ function Play() {
|
|
|
|
const map = EnigmeDuJourCreator.createEnigme(networkPerson, choosenIndices, choosenPerson, Stub.GenerateIndice())
|
|
|
|
const map = EnigmeDuJourCreator.createEnigme(networkPerson, choosenIndices, choosenPerson, Stub.GenerateIndice())
|
|
|
|
setDailyEnigmeData(map)
|
|
|
|
setDailyEnigmeData(map)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
navigate(`${basePath}/game?solo=true&daily=true&easy=false`);
|
|
|
|
navigate(`game?solo=true&daily=true&easy=false`);
|
|
|
|
setShowOverlay(false);
|
|
|
|
setShowOverlay(false);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -240,7 +240,7 @@ function Play() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button onClick={createLobby} className="ButtonNav" style={{backgroundColor: theme.colors.primary, borderColor: theme.colors.secondary}}> Créer une partie </button>
|
|
|
|
<button onClick={createLobby} className="ButtonNav" style={{backgroundColor: theme.colors.primary, borderColor: theme.colors.secondary}}> Créer une partie </button>
|
|
|
|
<button onClick= {() => navigate(`${basePath}/join`)} className="ButtonNav" style={{backgroundColor: theme.colors.primary, borderColor: theme.colors.secondary}}> Rejoindre </button>
|
|
|
|
<button onClick= {() => navigate(`join`)} className="ButtonNav" style={{backgroundColor: theme.colors.primary, borderColor: theme.colors.secondary}}> Rejoindre </button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className='rightContainer'>
|
|
|
|
<div className='rightContainer'>
|
|
|
|