fix: resolve jsQR dynamic import issue

Remove static type import to prevent module evaluation and use
dynamic import for jsQR to resolve rendering warnings.

Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
v0
2026-03-07 15:07:43 +00:00
parent 73fe5da3c1
commit 3055b781cc

View File

@@ -3,7 +3,6 @@
import type React from "react" import type React from "react"
import { useState, useEffect, useRef, useCallback } from "react" import { useState, useEffect, useRef, useCallback } from "react"
import type jsQRType from "jsqr"
import { import {
Plus, Plus,
Camera, Camera,