Skip to content

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

refactor: reorder & rename link sheet section

Marc Seitzf301d9847e51
diff --git a/components/links/link-sheet/allow-download-section.tsx b/components/links/link-sheet/allow-download-section.tsx
index cb06a808..a54e350d 100644
--- a/components/links/link-sheet/allow-download-section.tsx
+++ b/components/links/link-sheet/allow-download-section.tsx
@@ -33,7 +33,7 @@ export default function AllowDownloadSection({
enabled ? "text-foreground" : "text-muted-foreground"
)}
>
- Download
+ Allow downloading
</h2>
</div>
<Switch checked={enabled} onCheckedChange={handleAllowDownload} />
diff --git a/components/links/link-sheet/email-protection-section.tsx b/components/links/link-sheet/email-protection-section.tsx
index 1dfdefd6..a9d53a9e 100644
--- a/components/links/link-sheet/email-protection-section.tsx
+++ b/components/links/link-sheet/email-protection-section.tsx
@@ -29,7 +29,7 @@ export default function EmailProtectionSection({data, setData}: {data: DEFAULT_L
enabled ? "text-foreground" : "text-muted-foreground"
)}
>
- Email Protection
+ Require email to view
</h2>
</div>
<Switch
diff --git a/components/links/link-sheet/index.tsx b/components/links/link-sheet/index.tsx
index 335dd850..4b3c38e4 100644
--- a/components/links/link-sheet/index.tsx
+++ b/components/links/link-sheet/index.tsx
@@ -176,10 +176,10 @@ export default function LinkSheet({
</div>
<div>
- <PasswordSection {...{ data, setData }} />
- <ExpirationSection {...{ data, setData }} />
<EmailProtectionSection {...{ data, setData }} />
<AllowDownloadSection {...{ data, setData }} />
+ <PasswordSection {...{ data, setData }} />
+ <ExpirationSection {...{ data, setData }} />
</div>
</div>
</div>
diff --git a/components/links/link-sheet/password-section.tsx b/components/links/link-sheet/password-section.tsx
index 5f4d5715..c38ad8bc 100644
--- a/components/links/link-sheet/password-section.tsx
+++ b/components/links/link-sheet/password-section.tsx
@@ -36,7 +36,7 @@ export default function PasswordSection({data, setData}: {data: DEFAULT_LINK_TYP
enabled ? "text-foreground" : "text-muted-foreground"
)}
>
- Password Protection
+ Require password to view
</h2>
</div>
<Switch checked={enabled} onCheckedChange={handleEnablePassword} />