fixed data
This commit is contained in:
1 parent
eaa5cc0065
commit
54f4e991a3
5 files changed
+47
-29
No files matched your search
@@ -2,7 +2,6 @@
|
||||
|
||||
import { useLocalStorage } from "@/hooks/useLocalStorage"
|
||||
import { PREF } from "@/utils/const"
|
||||
import { parsePlayerData } from "@/utils/dataparser";
|
||||
import ChargedButton from "../ChargedButton";
|
||||
import styles from "@/css/Tour.module.css";
|
||||
import MapView, { PlaceMarker } from "../MapView";
|
||||
@@ -14,6 +13,8 @@ import OldButton from "../OldButton";
|
||||
import RiddleScreen from "../RiddleScreen";
|
||||
import OldPopUp from "../OldPopUp";
|
||||
import { MAX_POINTS, MIN_POINTS } from "@/utils/points";
|
||||
import { getPlayers } from "@/utils/players";
|
||||
import { getAnswers } from "@/utils/player_answers";
|
||||
|
||||
export default function Tour() {
|
||||
const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0");
|
||||
@@ -25,12 +26,14 @@ export default function Tour() {
|
||||
});
|
||||
const [ tourCode, setTourCode ] = useLocalStorage(PREF.code, "");
|
||||
const [ completedRiddlesStr, setCompletedRiddles ] = useLocalStorage(PREF.completed_riddles, "");
|
||||
const [ playersStr, setPlayers ] = useLocalStorage(PREF.players, "");
|
||||
const [ , setPlayers ] = useLocalStorage(PREF.players, "");
|
||||
const [ pointsStr, setPoints ] = useLocalStorage(PREF.points, "0");
|
||||
const [ markers, setMarkers ] = useState<PlaceMarker[]>([]);
|
||||
const { gpsStatus, cameraStatus } = usePermissions();
|
||||
const points = Number.parseInt(pointsStr);
|
||||
const players = parsePlayerData(playersStr);
|
||||
|
||||
console.log(getPlayers());
|
||||
console.log(getAnswers());
|
||||
|
||||
const permissionsGranted = gpsStatus === "granted" && cameraStatus === "granted";
|
||||
|
||||
|
||||
Reference in new issue
Block a user