mirror of
https://github.com/handsomezhuzhu/2fa-tool.git
synced 2026-04-18 22:32:53 +00:00
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:
@@ -3,7 +3,6 @@
|
||||
import type React from "react"
|
||||
|
||||
import { useState, useEffect, useRef, useCallback } from "react"
|
||||
import type jsQRType from "jsqr"
|
||||
import {
|
||||
Plus,
|
||||
Camera,
|
||||
|
||||
Reference in New Issue
Block a user