style: lint
This commit is contained in:
parent
e715f6ae6f
commit
2585017905
@ -74,7 +74,7 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
const parsePdfPages = async () => {
|
const parsePdfPages = async () => {
|
||||||
const pdfFiles: PdfFile[] = []
|
const pdfFiles: PdfFile[] = []
|
||||||
|
|
||||||
for (let file of selectedFiles) {
|
for (const file of selectedFiles) {
|
||||||
if (file.type.toLowerCase().includes('pdf')) {
|
if (file.type.toLowerCase().includes('pdf')) {
|
||||||
const data = await readPdf(file)
|
const data = await readPdf(file)
|
||||||
const pages = await pdfToImages(data)
|
const pages = await pdfToImages(data)
|
||||||
@ -99,7 +99,7 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
<div style={{
|
<div style={{
|
||||||
border: '1px solid #c4c4c4',
|
border: '1px solid #c4c4c4',
|
||||||
marginBottom: '10px'
|
marginBottom: '10px'
|
||||||
}} className={`${styles.pdfImageWrapper} ${!!selectedTool ? styles.drawing : ''}`}>
|
}} className={`${styles.pdfImageWrapper} ${selectedTool ? styles.drawing : ''}`}>
|
||||||
<img draggable="false" style={{ width: '100%' }} src={page}/>
|
<img draggable="false" style={{ width: '100%' }} src={page}/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -92,7 +92,7 @@ export const queryNip05 = async (
|
|||||||
if (!match) throw new Error('Invalid nip05')
|
if (!match) throw new Error('Invalid nip05')
|
||||||
|
|
||||||
// Destructure the match result, assigning default value '_' to name if not provided
|
// Destructure the match result, assigning default value '_' to name if not provided
|
||||||
const [_, name = '_', domain] = match
|
const [name = '_', domain] = match
|
||||||
|
|
||||||
// Construct the URL to query the NIP-05 data
|
// Construct the URL to query the NIP-05 data
|
||||||
const url = `https://${domain}/.well-known/nostr.json?name=${name}`
|
const url = `https://${domain}/.well-known/nostr.json?name=${name}`
|
||||||
|
Loading…
Reference in New Issue
Block a user