Skip to content

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

chore: fix type error on react-email

Marc Seitz176d2a51ce71
diff --git a/components/emails/deleted-domain.tsx b/components/emails/deleted-domain.tsx
index b99b6566..67790d8a 100644
--- a/components/emails/deleted-domain.tsx
+++ b/components/emails/deleted-domain.tsx
@@ -43,10 +43,9 @@ export default function DomainDeleted({
</Text>
<Section className="my-8 text-center">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
href={`https://www.papermark.io/settings/domains`}
+ style={{ padding: "12px 20px" }}
>
Set up your custom domain
</Button>
@@ -77,4 +76,4 @@ export default function DomainDeleted({
</Tailwind>
</Html>
);
-};
+}
diff --git a/components/emails/invalid-domain.tsx b/components/emails/invalid-domain.tsx
index 02a30300..dbc322be 100644
--- a/components/emails/invalid-domain.tsx
+++ b/components/emails/invalid-domain.tsx
@@ -32,18 +32,16 @@ export default function InvalidDomain({
<span className="font-bold tracking-tighter">Papermark</span>
</Heading>
<Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
- {invalidDays >= 14 ?
- `Invalid Domain Configuration` :
- `Finish configuring your domain`
- }
+ {invalidDays >= 14
+ ? `Invalid Domain Configuration`
+ : `Finish configuring your domain`}
</Heading>
<Text className="text-sm leading-6 text-black">
Your domain <code className="text-purple-600">{domain}</code> for
your Papermark account{" "}
- {invalidDays >= 14 ?
- `has been invalid for ${invalidDays} days.` :
- `is still unconfigured.`
- }
+ {invalidDays >= 14
+ ? `has been invalid for ${invalidDays} days.`
+ : `is still unconfigured.`}
</Text>
<Text className="text-sm leading-6 text-black">
If your domain remains unconfigured for 30 days, it will be
@@ -52,10 +50,9 @@ export default function InvalidDomain({
</Text>
<Section className="my-8 text-center">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
href={`https://www.papermark.io/settings/domains`}
+ style={{ padding: "12px 20px" }}
>
Configure domain
</Button>
@@ -68,15 +65,17 @@ export default function InvalidDomain({
>
delete it
</Link>{" "}
- or simply ignore this email.{" "}
- {invalidDays >= 14 ?
- `To respect your inbox,${" "}
- ${invalidDays < 28 ?
- `we will only send you one more email about this in ${28 - invalidDays} days.` :
- `this will be the last time we will email you about this.`}`
- : ""
- }
-
+ or simply ignore this email.{" "}
+ {invalidDays >= 14
+ ? `To respect your inbox,${" "}
+ ${
+ invalidDays < 28
+ ? `we will only send you one more email about this in ${
+ 28 - invalidDays
+ } days.`
+ : `this will be the last time we will email you about this.`
+ }`
+ : ""}
</Text>
<Hr />
<Section className="mt-8 text-gray-400">
@@ -100,4 +99,4 @@ export default function InvalidDomain({
</Tailwind>
</Html>
);
-};
+}
diff --git a/components/emails/team-invitation.tsx b/components/emails/team-invitation.tsx
index 347cec47..06878c5d 100644
--- a/components/emails/team-invitation.tsx
+++ b/components/emails/team-invitation.tsx
@@ -47,10 +47,10 @@ export default function TeamInvitation({
</Text>
<Section className="text-center mt-[32px] mb-[32px]">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
- href={`${process.env.NEXT_PUBLIC_BASE_URL}/api/teams/${teamId}/invite?token=${token}`}>
+ href={`${process.env.NEXT_PUBLIC_BASE_URL}/api/teams/${teamId}/invite?token=${token}`}
+ style={{ padding: "12px 20px" }}
+ >
Join the team
</Button>
</Section>
@@ -66,7 +66,8 @@ export default function TeamInvitation({
<a
href="https://www.papermark.io"
className="no-underline text-gray-400 hover:text-gray-400 visited:text-gray-400"
- target="_blank">
+ target="_blank"
+ >
papermark.io
</a>
</Text>
diff --git a/components/emails/trial-end-final-reminder.tsx b/components/emails/trial-end-final-reminder.tsx
index fc93a3bb..34ccbe58 100644
--- a/components/emails/trial-end-final-reminder.tsx
+++ b/components/emails/trial-end-final-reminder.tsx
@@ -59,10 +59,9 @@ const TrialEndFinalReminderEmail = ({ name }: TrialEndFinalReminderEmail) => {
</Text>
<Section className="text-center mt-[32px] mb-[32px]">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
href={`https://www.papermark.io/settings/billing`}
+ style={{ padding: "12px 20px" }}
>
Upgrade now
</Button>
diff --git a/components/emails/trial-end-reminder.tsx b/components/emails/trial-end-reminder.tsx
index 04018ff0..23e3a2e5 100644
--- a/components/emails/trial-end-reminder.tsx
+++ b/components/emails/trial-end-reminder.tsx
@@ -58,18 +58,17 @@ const TrialEndReminderEmail = ({ name }: TrialEndReminderEmail) => {
</Text>
<Section className="text-center mt-[32px] mb-[32px]">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
href={`https://www.papermark.io/settings/billing`}
+ style={{ padding: "12px 20px" }}
>
Upgrade your plan
</Button>
</Section>
<Text className="text-sm font-semibold">
<span className="text-red-500">⚠️</span> Links with custom domains
- will be <span className="underline text-red-500">disabled</span> after your
- trial.
+ will be <span className="underline text-red-500">disabled</span>{" "}
+ after your trial.
</Text>
<Text className="text-sm text-gray-400">Marc from Papermark</Text>
<Hr />
diff --git a/components/emails/upgrade-plan.tsx b/components/emails/upgrade-plan.tsx
index e2984c9c..e00f7ba0 100644
--- a/components/emails/upgrade-plan.tsx
+++ b/components/emails/upgrade-plan.tsx
@@ -71,10 +71,9 @@ const UpgradePlanEmail = ({ name }: UpgradePlanEmailProps) => {
</Text>
<Section className="text-center mt-[32px] mb-[32px]">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
href={`${process.env.NEXT_PUBLIC_BASE_URL}/settings/domains`}
+ style={{ padding: "12px 20px" }}
>
Set up your custom domain
</Button>
diff --git a/components/emails/viewed-document.tsx b/components/emails/viewed-document.tsx
index 218bad13..6bab2b51 100644
--- a/components/emails/viewed-document.tsx
+++ b/components/emails/viewed-document.tsx
@@ -50,10 +50,9 @@ export default function ViewedDocument({
</Text>
<Section className="my-8 text-center">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
href={`https://www.papermark.io/documents/${documentId}`}
+ style={{ padding: "12px 20px" }}
>
See my document insights
</Button>
diff --git a/components/emails/welcome.tsx b/components/emails/welcome.tsx
index 874d496f..08f52575 100644
--- a/components/emails/welcome.tsx
+++ b/components/emails/welcome.tsx
@@ -14,12 +14,10 @@ import {
Hr,
} from "@react-email/components";
-
interface WelcomeEmailProps {
name: string | null | undefined;
}
-
const WelcomeEmail = ({ name }: WelcomeEmailProps) => {
const previewText = `The document sharing infrastructure for the modern web`;
@@ -57,10 +55,9 @@ const WelcomeEmail = ({ name }: WelcomeEmailProps) => {
</Text>
<Section className="text-center mt-[32px] mb-[32px]">
<Button
- pX={20}
- pY={12}
className="bg-black rounded text-white text-xs font-semibold no-underline text-center"
href={`${process.env.NEXT_PUBLIC_BASE_URL}/welcome`}
+ style={{ padding: "12px 20px" }}
>
Get Started
</Button>
@@ -120,4 +117,4 @@ const WelcomeEmail = ({ name }: WelcomeEmailProps) => {
);
};
-export default WelcomeEmail;
\ No newline at end of file
+export default WelcomeEmail;