This commit is contained in:
Timur Ercan
2023-03-09 18:36:36 +01:00
parent f058400d24
commit fd123f0ba2
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ export default function FieldTypeSelector(props: any) {
<div className="space-y-4"> <div className="space-y-4">
{fieldTypes.map((fieldType) => ( {fieldTypes.map((fieldType) => (
<RadioGroup.Option <RadioGroup.Option
onMouseDown={(e) => { onMouseDown={(e: any) => {
if (e.button === 0) setSelectedFieldType(fieldType.id); if (e.button === 0) setSelectedFieldType(fieldType.id);
}} }}
key={fieldType.id} key={fieldType.id}

View File

@ -45,7 +45,7 @@ export default function PDFViewer(props) {
{Array.from({ length: numPages }, (_, index) => ( {Array.from({ length: numPages }, (_, index) => (
<Fragment key={short.generate().toString()}> <Fragment key={short.generate().toString()}>
<div <div
onMouseDown={(e) => { onMouseDown={(e: any) => {
if (e.button === 0) props.onMouseDown(e, index); if (e.button === 0) props.onMouseDown(e, index);
}} }}
onMouseUp={(e) => { onMouseUp={(e) => {

2
package-lock.json generated
View File

@ -8686,7 +8686,7 @@
"nodemailer": "^6.9.0", "nodemailer": "^6.9.0",
"nodemailer-sendgrid": "^1.0.3", "nodemailer-sendgrid": "^1.0.3",
"npm": "^9.1.3", "npm": "^9.1.3",
"pdf-lib": "*", "pdf-lib": "^1.17.1",
"placeholder-loading": "^0.6.0", "placeholder-loading": "^0.6.0",
"postcss": "^8.4.19", "postcss": "^8.4.19",
"react": "18.2.0", "react": "18.2.0",