This commit is contained in:
David Nguyen
2025-02-10 03:33:22 +11:00
parent 5b395fc9ad
commit d24f67d922
5 changed files with 67 additions and 58 deletions

View File

@ -1,7 +1,5 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
// Todo
// import { Caveat } from 'next/font/google';
import { CopyPlus, Settings2, Trash } from 'lucide-react';
import { createPortal } from 'react-dom';
import { Rnd } from 'react-rnd';
@ -20,13 +18,6 @@ import type { TDocumentFlowFormSchema } from './types';
type Field = TDocumentFlowFormSchema['fields'][0];
// const fontCaveat = Caveat({
// weight: ['500'],
// subsets: ['latin'],
// display: 'swap',
// variable: '--font-caveat',
// });
export type FieldItemProps = {
field: Field;
passive?: boolean;
@ -252,12 +243,7 @@ export const FieldItem = ({
.with('CHECKBOX', () => <CheckboxField field={field} />)
.with('RADIO', () => <RadioField field={field} />)
.otherwise(() => (
<FieldIcon
fieldMeta={field.fieldMeta}
type={field.type}
signerEmail={field.signerEmail}
// fontCaveatClassName={fontCaveat.className}
/>
<FieldIcon fieldMeta={field.fieldMeta} type={field.type} />
))}
{!hideRecipients && (