|
@@ -10,6 +10,7 @@ import {
|
|
|
Tailwind
|
|
|
} from "@react-email/components";
|
|
|
import * as React from "react";
|
|
|
+import LetterHead from "./components/LetterHead";
|
|
|
|
|
|
interface ResourceOTPCodeProps {
|
|
|
email?: string;
|
|
@@ -24,7 +25,7 @@ export const ResourceOTPCode = ({
|
|
|
orgName: organizationName,
|
|
|
otp
|
|
|
}: ResourceOTPCodeProps) => {
|
|
|
- const previewText = `Your one-time password for ${resourceName} is ready!`;
|
|
|
+ const previewText = `Your one-time password for ${resourceName} is ${otp}`;
|
|
|
|
|
|
return (
|
|
|
<Html>
|
|
@@ -43,27 +44,18 @@ export const ResourceOTPCode = ({
|
|
|
>
|
|
|
<Body className="font-sans">
|
|
|
<Container className="bg-white border border-solid border-gray-200 p-6 max-w-lg mx-auto my-8 rounded-lg">
|
|
|
- <div className="flex items-center justify-between">
|
|
|
- <div className="text-sm font-bold text-orange-500">
|
|
|
- Pangolin
|
|
|
- </div>
|
|
|
-
|
|
|
- <div className="text-sm text-gray-500">
|
|
|
- {new Date().toLocaleDateString()}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <LetterHead />
|
|
|
|
|
|
<Heading className="text-2xl font-semibold text-gray-800 text-center">
|
|
|
- Your One-Time Password
|
|
|
+ Your One-Time Password for {resourceName}
|
|
|
</Heading>
|
|
|
<Text className="text-base text-gray-700 mt-4">
|
|
|
Hi {email || "there"},
|
|
|
</Text>
|
|
|
<Text className="text-base text-gray-700 mt-2">
|
|
|
- You’ve requested a one-time password (OTP) to
|
|
|
- authenticate with the resource{" "}
|
|
|
+ You’ve requested a one-time password to access{" "}
|
|
|
<strong>{resourceName}</strong> in{" "}
|
|
|
- <strong>{organizationName}</strong>. Use the OTP
|
|
|
+ <strong>{organizationName}</strong>. Use the code
|
|
|
below to complete your authentication:
|
|
|
</Text>
|
|
|
<Section className="text-center">
|