Skip to content

The Open Source DocuSign Alternative.

chore: tidy code

Ephraim Atta-Duncan4ae19a9e637f
diff --git a/packages/ui/primitives/document-flow/subject-field-item.tsx b/packages/ui/primitives/document-flow/subject-field-item.tsx
index 725a70476..14082a0da 100644
--- a/packages/ui/primitives/document-flow/subject-field-item.tsx
+++ b/packages/ui/primitives/document-flow/subject-field-item.tsx
@@ -12,10 +12,8 @@ import { Card, CardContent } from '../card';
import { FRIENDLY_FIELD_TYPE } from './types';
import type { Prisma } from '.prisma/client';
-type Field = Prisma.FieldGetPayload<null>;
-
export type FieldItemProps = {
- field: Field;
+ field: Prisma.FieldGetPayload<null>;
recipients: Prisma.RecipientGetPayload<null>[];
};
@@ -44,7 +42,6 @@ export const SubjectFieldItem = ({ field, recipients }: FieldItemProps) => {
const top = $page.getBoundingClientRect().top + window.scrollY;
const left = $page.getBoundingClientRect().left + window.scrollX;
- // X and Y are percentages of the page's height and width
const pageX = (Number(field.positionX) / 100) * width + left;
const pageY = (Number(field.positionY) / 100) * height + top;