Another build fix
This commit is contained in:
parent
8495e4212d
commit
21e1b8f9ca
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ const PDFViewer = dynamic(
|
|||
export default function PDFViewerPage() {
|
||||
const { id } = useParams();
|
||||
const { setCurrentDocument, currDocName, clearCurrDoc } = usePDF();
|
||||
const { setText, stop } = useTTS();
|
||||
const { stop } = useTTS();
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [zoomLevel, setZoomLevel] = useState<number>(100);
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ export function PDFProvider({ children }: { children: ReactNode }) {
|
|||
const onDocumentLoadSuccess = useCallback(({ numPages }: { numPages: number }) => {
|
||||
console.log('Document loaded:', numPages);
|
||||
setCurrDocPages(numPages);
|
||||
}, []);
|
||||
}, [setCurrDocPages]);
|
||||
|
||||
// Extract text from a PDF file
|
||||
const extractTextFromPDF = useCallback(async (pdfURL: string, currDocPage: number): Promise<string> => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue