mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
🧹 qoc
This commit is contained in:
@ -2,7 +2,6 @@ import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib/constants";
|
|||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
import { Fragment, useState } from "react";
|
import { Fragment, useState } from "react";
|
||||||
import toast from "react-hot-toast";
|
|
||||||
import { FieldType } from "@prisma/client";
|
import { FieldType } from "@prisma/client";
|
||||||
import { Listbox, RadioGroup, Transition } from "@headlessui/react";
|
import { Listbox, RadioGroup, Transition } from "@headlessui/react";
|
||||||
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/react/24/outline";
|
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/react/24/outline";
|
||||||
@ -22,7 +21,6 @@ export default function PDFEditor(props: any) {
|
|||||||
);
|
);
|
||||||
const noRecipients = props?.document?.Recipient?.length === 0;
|
const noRecipients = props?.document?.Recipient?.length === 0;
|
||||||
const [fields, setFields] = useState<any[]>(props.document.Field);
|
const [fields, setFields] = useState<any[]>(props.document.Field);
|
||||||
const [adding, setAdding] = useState(false);
|
|
||||||
const fieldTypes = [
|
const fieldTypes = [
|
||||||
{ name: "Signature" },
|
{ name: "Signature" },
|
||||||
{ name: "Text" },
|
{ name: "Text" },
|
||||||
@ -167,9 +165,6 @@ export default function PDFEditor(props: any) {
|
|||||||
<RadioGroup
|
<RadioGroup
|
||||||
value={selectedFieldType}
|
value={selectedFieldType}
|
||||||
onChange={setSelectedFieldType}
|
onChange={setSelectedFieldType}
|
||||||
onMouseDown={() => {
|
|
||||||
setAdding(true);
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{fieldTypes.map((fieldType) => (
|
{fieldTypes.map((fieldType) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user