mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
🚧 ondelete to editor
This commit is contained in:
@ -12,6 +12,10 @@ export default function PDFViewer(props) {
|
||||
props.onPositionChanged(position, id);
|
||||
}
|
||||
|
||||
function onDeleteHandler(id) {
|
||||
props.onDelete(id);
|
||||
}
|
||||
|
||||
function onFileChange(event) {
|
||||
setFile(event.target.files[0]);
|
||||
}
|
||||
@ -62,6 +66,7 @@ export default function PDFViewer(props) {
|
||||
field={item}
|
||||
className="absolute"
|
||||
onPositionChanged={onPositionChangedHandler}
|
||||
onDelete={onDeleteHandler}
|
||||
></Field>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user