We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8fac5b commit 788f271Copy full SHA for 788f271
src/app/qr-file-reader/PdfViewer.tsx
@@ -22,7 +22,8 @@ const PdfJsViewer = ({ fileUrl }: { fileUrl: string }) => {
22
};
23
main();
24
}, [fileUrl]);
25
- const handleFileChange = async (e: any) => {
+ // @ts-expect-error todo
26
+ const handleFileChange = async (e) => {
27
const file = e.target.files[0];
28
if (file && file.type === "application/pdf") {
29
const reader = new FileReader();
src/app/qr-file-reader/page.tsx
@@ -1,5 +1,5 @@
1
"use client";
2
-import React, { useEffect, useState } from "react";
+import React from "react";
3
import PdfViewer from "./PdfViewer";
4
5
export default function Page() {
0 commit comments