Skip to content

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

chore: cleanup

Marc Seitzca2571046346
diff --git a/components/datarooms/add-dataroom-modal.tsx b/components/datarooms/add-dataroom-modal.tsx
index d5f3e4e5..bdc6ee3f 100644
--- a/components/datarooms/add-dataroom-modal.tsx
+++ b/components/datarooms/add-dataroom-modal.tsx
@@ -265,7 +265,7 @@ export function AddDataroomModal({
</Label>
<Input
id="dataroom-name-generate"
- placeholder="ACME Aquisition"
+ placeholder="ACME Acquisition"
value={dataroomName}
onChange={(e) => setDataroomName(e.target.value)}
/>
diff --git a/ee/features/templates/constants/dataroom-templates.ts b/ee/features/templates/constants/dataroom-templates.ts
index c1185b2f..bd4bb8b8 100644
--- a/ee/features/templates/constants/dataroom-templates.ts
+++ b/ee/features/templates/constants/dataroom-templates.ts
@@ -3,6 +3,18 @@ export interface FolderTemplate {
subfolders?: FolderTemplate[];
}
+export const DATAROOM_TEMPLATE_TYPES = [
+ "startup-fundraising",
+ "raising-first-fund",
+ "ma-acquisition",
+ "series-a-plus",
+ "real-estate-transaction",
+ "fund-management",
+ "portfolio-management",
+ "project-management",
+ "sales-dataroom",
+] as const;
+
export const DATAROOM_TEMPLATES: Record<
string,
{ name: string; folders: FolderTemplate[] }
diff --git a/ee/features/templates/schemas/dataroom-templates.ts b/ee/features/templates/schemas/dataroom-templates.ts
index 44fe1a07..424697d0 100644
--- a/ee/features/templates/schemas/dataroom-templates.ts
+++ b/ee/features/templates/schemas/dataroom-templates.ts
@@ -1,24 +1,7 @@
import { z } from "zod";
-/**
- * Valid dataroom template types
- */
-export const DATAROOM_TEMPLATE_TYPES = [
- "startup-fundraising",
- "raising-first-fund",
- "ma-acquisition",
- "series-a-plus",
- "real-estate-transaction",
- "fund-management",
- "portfolio-management",
- "project-management",
- "sales-dataroom",
-] as const;
+import { DATAROOM_TEMPLATE_TYPES } from "../constants/dataroom-templates";
-/**
- * Schema for validating template type selection
- * Protects against invalid template types and injection attacks
- */
export const applyTemplateSchema = z.object({
type: z
.enum(DATAROOM_TEMPLATE_TYPES, {