File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const PDFViewer = dynamic(
2020export default function PDFViewerPage ( ) {
2121 const { id } = useParams ( ) ;
2222 const { setCurrentDocument, currDocName, clearCurrDoc } = usePDF ( ) ;
23- const { setText , stop } = useTTS ( ) ;
23+ const { stop } = useTTS ( ) ;
2424 const [ error , setError ] = useState < string | null > ( null ) ;
2525 const [ isLoading , setIsLoading ] = useState ( true ) ;
2626 const [ zoomLevel , setZoomLevel ] = useState < number > ( 100 ) ;
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ export function PDFProvider({ children }: { children: ReactNode }) {
151151 const onDocumentLoadSuccess = useCallback ( ( { numPages } : { numPages : number } ) => {
152152 console . log ( 'Document loaded:' , numPages ) ;
153153 setCurrDocPages ( numPages ) ;
154- } , [ ] ) ;
154+ } , [ setCurrDocPages ] ) ;
155155
156156 // Extract text from a PDF file
157157 const extractTextFromPDF = useCallback ( async ( pdfURL : string , currDocPage : number ) : Promise < string > => {
You can’t perform that action at this time.
0 commit comments