Another build fix

This commit is contained in:
Richard Roberson 2025-01-26 03:02:32 -07:00
parent 8495e4212d
commit 21e1b8f9ca
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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> => {