mirror of
https://github.com/documenso/documenso.git
synced 2026-08-26 00:02:43 +10:00
fix: performance improvements (#2581)
This commit is contained in:
@@ -8,7 +8,8 @@ import { PDF_VIEWER_ERROR_MESSAGES } from '@documenso/lib/constants/pdf-viewer-i
|
||||
import { cn } from '@documenso/ui/lib/utils';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@documenso/ui/primitives/alert';
|
||||
|
||||
import { PDFViewer, type PDFViewerProps } from './pdf-viewer';
|
||||
import type { PDFViewerProps } from './pdf-viewer';
|
||||
import PDFViewerLazy from './pdf-viewer-lazy';
|
||||
|
||||
export type EnvelopePdfViewerProps = {
|
||||
/**
|
||||
@@ -52,7 +53,8 @@ export const EnvelopePdfViewer = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<PDFViewer
|
||||
<PDFViewerLazy
|
||||
key={`${currentEnvelopeItem.envelopeId}-${currentEnvelopeItem.id}`}
|
||||
{...props}
|
||||
className={cn('h-full w-full max-w-[800px]', className)}
|
||||
data={currentEnvelopeItem.data}
|
||||
|
||||
Reference in New Issue
Block a user