Following
This commit is contained in:
@@ -12,6 +12,7 @@ function GameScene({theme,id}) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
post('https://saucisson.justw.tf/api/games/create/'+id,{},token)
|
post('https://saucisson.justw.tf/api/games/create/'+id,{},token)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
console.log(res.JSON);
|
||||||
setData(res.JSON);
|
setData(res.JSON);
|
||||||
})
|
})
|
||||||
.catch(err => console.log(err));
|
.catch(err => console.log(err));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
function QuestionBox({question}) {
|
function QuestionBox({question}) {
|
||||||
return(
|
return(
|
||||||
<div className="fixed top-4 left-44 right-4 h-42 bg-slate-300 rounded-md">
|
<div className="fixed top-4 left-32 right-4 h-42 bg-slate-300 rounded-md">
|
||||||
{question}
|
{question}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user