mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
🧹
This commit is contained in:
@ -5,10 +5,8 @@ import SignableField from "./signable-field";
|
||||
import short from "short-uuid";
|
||||
|
||||
export default function PDFViewer(props) {
|
||||
const [file, setFile] = useState("");
|
||||
const [numPages, setNumPages] = useState(null);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [scrollPosition, setScrollPosition] = useState(0);
|
||||
const [pageHeight, setPageHeight] = useState(0);
|
||||
|
||||
function onPositionChangedHandler(position, id) {
|
||||
@ -19,10 +17,6 @@ export default function PDFViewer(props) {
|
||||
props.onDelete(id);
|
||||
}
|
||||
|
||||
function onFileChange(event) {
|
||||
setFile(event.target.files[0]);
|
||||
}
|
||||
|
||||
function onDocumentLoadSuccess({ numPages: nextNumPages }) {
|
||||
setNumPages(nextNumPages);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user