mirror of
https://github.com/documenso/documenso.git
synced 2026-07-15 15:27:10 +10:00
fix: react19 errors
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"fumadocs-mdx": "14.2.6",
|
||||
"fumadocs-ui": "16.5.0",
|
||||
"lucide-react": "catalog:",
|
||||
"mermaid": "^11.12.2",
|
||||
"mermaid": "^11.12.3",
|
||||
"next": "catalog:",
|
||||
"next-plausible": "^3.12.5",
|
||||
"next-themes": "^0.4.6",
|
||||
|
||||
@@ -162,7 +162,7 @@ export const PDFViewer = ({
|
||||
if (!data) {
|
||||
return (
|
||||
<div ref={$el} className={cn('h-full w-full', className)} {...props}>
|
||||
<p className="py-32 text-center text-sm text-muted-foreground">
|
||||
<p className="text-muted-foreground py-32 text-center text-sm">
|
||||
<Trans>No document found</Trans>
|
||||
</p>
|
||||
</div>
|
||||
@@ -194,7 +194,7 @@ export const PDFViewer = ({
|
||||
|
||||
type VirtualizedPageListProps = {
|
||||
scrollParentRef: ScrollTarget;
|
||||
constraintRef: React.RefObject<HTMLDivElement>;
|
||||
constraintRef: React.RefObject<HTMLDivElement | null>;
|
||||
pages: PageMeta[];
|
||||
numPages: number;
|
||||
pdf: pdfjsLib.PDFDocumentProxy;
|
||||
@@ -278,7 +278,7 @@ const VirtualizedPageList = ({
|
||||
customPageRenderer={customPageRenderer}
|
||||
/>
|
||||
|
||||
<p className="my-2 text-center text-[11px] text-muted-foreground/80">
|
||||
<p className="text-muted-foreground/80 my-2 text-center text-[11px]">
|
||||
<Trans>
|
||||
Page {pageNumber} of {numPages}
|
||||
</Trans>
|
||||
@@ -323,7 +323,7 @@ const PdfViewerPage = ({
|
||||
|
||||
return (
|
||||
<div
|
||||
className="relative w-full rounded border border-border"
|
||||
className="border-border relative w-full rounded border"
|
||||
style={{ width: scaledWidth, height: scaledHeight }}
|
||||
>
|
||||
{CustomPageRenderer && imageLoadingState === 'loaded' && (
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"@documenso/ui": "workspace:*",
|
||||
"@epic-web/remember": "^1.1.0",
|
||||
"@faker-js/faker": "^10.1.0",
|
||||
"@hono/node-server": "^1.19.6",
|
||||
"@hono/node-server": "catalog:",
|
||||
"@hono/standard-validator": "catalog:",
|
||||
"@hono/trpc-server": "^0.4.0",
|
||||
"@hookform/resolvers": "catalog:",
|
||||
|
||||
Reference in New Issue
Block a user