diff --git a/src/components/DrawPDFFields/index.tsx b/src/components/DrawPDFFields/index.tsx
index 076c6fb..543edf9 100644
--- a/src/components/DrawPDFFields/index.tsx
+++ b/src/components/DrawPDFFields/index.tsx
@@ -9,8 +9,16 @@ import {
} from '@mui/material'
import styles from './style.module.scss'
import React, { useEffect, useState } from 'react'
-import { ProfileMetadata, User, UserRole } from '../../types'
-import { MouseState, PdfPage, DrawnField, DrawTool } from '../../types/drawing'
+import {
+ ProfileMetadata,
+ User,
+ UserRole,
+ KeyboardCode,
+ MouseState,
+ PdfPage,
+ DrawnField,
+ DrawTool
+} from '../../types'
import { hexToNpub, npubToHex, getProfileUsername } from '../../utils'
import { SigitFile } from '../../utils/file'
import { getToolboxLabelByMarkType } from '../../utils/mark'
@@ -41,6 +49,10 @@ export const DrawPDFFields = (props: Props) => {
const signers = users.filter((u) => u.role === UserRole.signer)
const defaultSignerNpub = signers.length ? hexToNpub(signers[0].pubkey) : ''
const [lastSigner, setLastSigner] = useState(defaultSignerNpub)
+ const [hideSignersForDrawnField, setHideSignersForDrawnField] = useState<{
+ [key: number]: boolean
+ } | null>()
+
/**
* Return first pubkey that is present in the signers list
* @param pubkeys
@@ -361,6 +373,7 @@ export const DrawPDFFields = (props: Props) => {
rect
}
}
+
/**
* Renders the pdf pages and drawing elements
*/
@@ -492,62 +505,90 @@ export const DrawPDFFields = (props: Props) => {
fileIndex,
pageIndex,
drawnFieldIndex
- ) && (
-
-
- Counterpart
-
+
+
+ )}
)
})}