diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9aaf598 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +legacy-peer-deps=true +fund=false +save-exact=true diff --git a/app/(main)/clue/[clueId]/page.js b/app/(main)/clue/[clueId]/page.js index bc966ba..dbb2119 100644 --- a/app/(main)/clue/[clueId]/page.js +++ b/app/(main)/clue/[clueId]/page.js @@ -5,36 +5,43 @@ import { useSession } from "next-auth/react"; import { formatElapsedTime, getHuntTimer } from "@/utils/timerService"; import Link from "next/link"; import dynamic from "next/dynamic"; +import { use } from "react"; +import QRCodeHelper from "@/components/QRCodeHelper"; -// Dynamically import QR scanner component with no SSR to avoid hydration issues -const QRScanner = dynamic(() => import("@/components/QRScanner"), { - ssr: false, -}); +// Dynamically import the new QR scanner component with no SSR +const EnhancedQRScanner = dynamic( + () => import("@/components/EnhancedQRScanner"), + { + ssr: false, + loading: () =>
{clue.description}
- - {clue.location && ( +{clue?.description}
+ {clue?.location && ({clue.location}
@@ -322,13 +341,19 @@ export default function CluePage({ params }) {