Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: typescript errors
Marc Seitzb1089870397d
diff --git a/components/shared/icons/eye-off.tsx b/components/shared/icons/eye-off.tsxindex 729f27e5..5fe0f1f1 100644--- a/components/shared/icons/eye-off.tsx+++ b/components/shared/icons/eye-off.tsx@@ -1,4 +1,9 @@-export default function EyeOff({ className }: { className?: string }) {+import type { SVGProps } from "react";++export default function EyeOff({+ className,+ ...props+}: SVGProps<SVGSVGElement>) {return (<svgwidth="14"@@ -11,6 +16,7 @@ export default function EyeOff({ className }: { className?: string }) {strokeLinejoin="round"shapeRendering="geometricPrecision"className={className}+ {...props}><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24" /><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" />diff --git a/components/shared/icons/eye.tsx b/components/shared/icons/eye.tsxindex fb2246d5..334bc765 100644--- a/components/shared/icons/eye.tsx+++ b/components/shared/icons/eye.tsx@@ -1,4 +1,6 @@-export default function Eye({ className }: { className?: string }) {+import type { SVGProps } from "react";++export default function Eye({ className, ...props }: SVGProps<SVGSVGElement>) {return (<svgwidth="14"@@ -11,6 +13,7 @@ export default function Eye({ className }: { className?: string }) {strokeLinejoin="round"shapeRendering="geometricPrecision"className={className}+ {...props}><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" /><circle cx="12" cy="12" r="3" />diff --git a/components/view/access-form/custom-fields-section.tsx b/components/view/access-form/custom-fields-section.tsxindex 0cab3916..ad27aab3 100644--- a/components/view/access-form/custom-fields-section.tsx+++ b/components/view/access-form/custom-fields-section.tsx@@ -141,13 +141,16 @@ export default function CustomFieldsSection({"notranslate flex w-full cursor-text rounded-md border-0 bg-black py-1.5 text-gray-500 shadow-sm ring-1 ring-inset ring-gray-600 placeholder:text-[var(--access-placeholder)] focus:ring-2 focus:ring-inset focus:ring-[var(--access-input-focus)] sm:text-sm sm:leading-6",isLongText && "min-h-[100px] resize-none",)}- style={{- backgroundColor: theme.controlBgColor,- borderColor: theme.controlBorderColor,- "--access-placeholder": theme.controlPlaceholderColor,- "--access-input-focus": theme.controlBorderStrongColor,- color: theme.textColor,- }}+ style={+ {+ backgroundColor: theme.controlBgColor,+ borderColor: theme.controlBorderColor,+ "--access-placeholder":+ theme.controlPlaceholderColor,+ "--access-input-focus": theme.controlBorderStrongColor,+ color: theme.textColor,+ } as React.CSSProperties+ }value={value}placeholder={field.placeholder || ""}onChange={(e) => handleInputChange(e, field.identifier!)}diff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsxindex 988f3a6c..2bfc5e3d 100644--- a/components/view/dataroom/dataroom-view.tsx+++ b/components/view/dataroom/dataroom-view.tsx@@ -285,7 +285,7 @@ export default function DataroomView({return (<divclassName="bg-white"- style={{ backgroundColor: dataroomViewBackgroundColor }}+ style={{ backgroundColor: dataroomViewBackgroundColor ?? undefined }}><DataroomVieweraccessControls={link.accessControls || group?.accessControls || []}@@ -317,7 +317,7 @@ export default function DataroomView({return (<divclassName="bg-white"- style={{ backgroundColor: dataroomViewBackgroundColor }}+ style={{ backgroundColor: dataroomViewBackgroundColor ?? undefined }}><div className="flex h-screen items-center justify-center"><LoadingSpinner className="h-20 w-20" />