More things for web
This commit is contained in:
1 parent
78b1058276
commit
a1ab487084
8 files changed
+87
-8
No files matched your search
@@ -0,0 +1,32 @@
|
||||
import { useLocalStorage } from "@/hooks/useLocalStorage"
|
||||
import { PREF } from "@/utils/const"
|
||||
import { parsePlayerData } from "@/utils/dataparser";
|
||||
|
||||
export default function Tour() {
|
||||
const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0");
|
||||
const [ tourCode, setTourCode ] = useLocalStorage(PREF.code, "");
|
||||
const [ completedRiddlesStr, setCompletedRiddles ] = useLocalStorage(PREF.completed_riddles, "");
|
||||
const [ playersStr, setPlayers ] = useLocalStorage(PREF.players, "");
|
||||
const [ pointsStr, setPoints ] = useLocalStorage(PREF.points, "0");
|
||||
const step = Number.parseInt(stepStr) || 0;
|
||||
const points = Number.parseInt(pointsStr) || 0;
|
||||
const players = parsePlayerData(playersStr);
|
||||
|
||||
return (
|
||||
<div className="screen-container">
|
||||
<div>
|
||||
{"Points: " + points}
|
||||
{"Players: " + playersStr}
|
||||
</div>
|
||||
<div>
|
||||
Contains both
|
||||
<div>
|
||||
Map
|
||||
</div>
|
||||
<div>
|
||||
Riddle Overlay
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user