From 34b993db20e1f67d501bf4568899138ddbb10adf Mon Sep 17 00:00:00 2001 From: Stixx Date: Wed, 15 Jan 2025 10:47:17 +0100 Subject: [PATCH] fix: shortened imports --- src/components/MarkTypeStrategy/Signature/index.tsx | 3 +-- src/components/PDFView/PdfMarking.tsx | 2 +- src/components/PDFView/index.tsx | 2 +- src/pages/sign/index.tsx | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/MarkTypeStrategy/Signature/index.tsx b/src/components/MarkTypeStrategy/Signature/index.tsx index 90a441f..78c8d71 100644 --- a/src/components/MarkTypeStrategy/Signature/index.tsx +++ b/src/components/MarkTypeStrategy/Signature/index.tsx @@ -94,8 +94,7 @@ export const SignatureStrategy: MarkStrategy = { if (arrayBuffer) { // decode json const decoder = new TextDecoder() - const json = decoder.decode(arrayBuffer) - return json + return decoder.decode(arrayBuffer) } // TOOD: offline diff --git a/src/components/PDFView/PdfMarking.tsx b/src/components/PDFView/PdfMarking.tsx index 0f16db2..4a43166 100644 --- a/src/components/PDFView/PdfMarking.tsx +++ b/src/components/PDFView/PdfMarking.tsx @@ -7,7 +7,7 @@ import { getUpdatedMark, updateCurrentUserMarks } from '../../utils' -import { EMPTY } from '../../utils/const.ts' +import { EMPTY } from '../../utils' import { Container } from '../Container' import signPageStyles from '../../pages/sign/style.module.scss' import { CurrentUserFile } from '../../types/file.ts' diff --git a/src/components/PDFView/index.tsx b/src/components/PDFView/index.tsx index 46e2615..cef0f54 100644 --- a/src/components/PDFView/index.tsx +++ b/src/components/PDFView/index.tsx @@ -4,7 +4,7 @@ import { CurrentUserFile } from '../../types/file.ts' import { useEffect, useRef } from 'react' import { FileDivider } from '../FileDivider.tsx' import React from 'react' -import { LoadingSpinner } from '../LoadingSpinner/index.tsx' +import { LoadingSpinner } from '../LoadingSpinner' interface PdfViewProps { currentFile: CurrentUserFile | null diff --git a/src/pages/sign/index.tsx b/src/pages/sign/index.tsx index b4b01d2..f789ade 100644 --- a/src/pages/sign/index.tsx +++ b/src/pages/sign/index.tsx @@ -47,7 +47,7 @@ import { } from '../../utils/file.ts' import { generateTimestamp } from '../../utils/opentimestamps.ts' import { MARK_TYPE_CONFIG } from '../../components/MarkTypeStrategy/MarkStrategy.tsx' -import { useNDK } from '../../hooks/useNDK.ts' +import { useNDK } from '../../hooks' import { getLastSignersSig } from '../../utils/sign.ts' export const SignPage = () => {