Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: cleanup

Marc Seitz60ecc05a6f8c
diff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsx
index ed294f7a..64f8b8f2 100644
--- a/components/ui/sheet.tsx
+++ b/components/ui/sheet.tsx
@@ -5,10 +5,10 @@ import * as React from "react";
import * as SheetPrimitive from "@radix-ui/react-dialog";
import { type VariantProps, cva } from "class-variance-authority";
-import X from "@/components/shared/icons/x";
-
import { cn } from "@/lib/utils";
+import X from "@/components/shared/icons/x";
+
const Sheet = SheetPrimitive.Root;
const SheetTrigger = SheetPrimitive.Trigger;
@@ -26,7 +26,7 @@ const SheetOverlay = React.forwardRef<
>(({ className, ...props }, ref) => (
<SheetPrimitive.Overlay
className={cn(
- "fixed inset-0 z-50 bg-[rgba(182,192,205,0.7)] dark:bg-[rgba(30,30,30,0.7)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ "fixed inset-0 z-50 bg-[rgba(182,192,205,0.7)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 dark:bg-[rgba(30,30,30,0.7)]",
className,
)}
{...props}
diff --git a/components/view/dataroom/document-card.tsx b/components/view/dataroom/document-card.tsx
index 4d03bd88..7d4af120 100644
--- a/components/view/dataroom/document-card.tsx
+++ b/components/view/dataroom/document-card.tsx
@@ -17,7 +17,7 @@ import {
import { fileIcon } from "@/lib/utils/get-file-icon";
-import { DocumentVersion } from "../DataroomViewer";
+import { DocumentVersion } from "../viewer/dataroom-viewer";
type DRDocument = {
dataroomDocumentId: string;
diff --git a/prisma/add-migration.sh b/prisma/add-migration.sh
index f26e8ef0..d99d70d2 100755
--- a/prisma/add-migration.sh
+++ b/prisma/add-migration.sh
@@ -50,7 +50,7 @@ mkdir -p "prisma/migrations/${migration_name}" || {
# Generate migration
npx prisma migrate diff \
--from-migrations prisma/migrations \
- --to-schema-datamodel prisma/schema.prisma \
+ --to-schema-datasource prisma/schema \
--shadow-database-url "postgresql://${USER}@localhost:5432/papermark-shadow-db" \
--script > "prisma/migrations/${migration_name}/migration.sql" || {
echo "Failed to generate migration"