mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-10-30 14:47:36 +00:00
108 files: README, marketing copy, page titles, meta tags, footer text, email templates, .env.example, UI strings. URLs swapped from papermark.com/papermark.io to dataroom.hanzo.ai. Internal identifiers left intact per repo policy: localStorage keys (papermark.email/papermark.name/last_papermark_login — changing them logs users out), type field names (papermarkUserId), internal helper symbols (PAPERMARK_HEADERS, PapermarkSparkle component, isPapermarkUrl helper), internal-only filenames. LLM.md retains 'Upstream: Papermark' attribution line. Per-locale .po translations regenerate from source on the next lingui-extract CI run. DB migrations untouched (append-only history; rewriting them breaks installed schemas). LICENSE stays AGPL-3.0.
83 lines
2.7 KiB
TypeScript
83 lines
2.7 KiB
TypeScript
import {
|
|
Body,
|
|
Container,
|
|
Head,
|
|
Heading,
|
|
Html,
|
|
Link,
|
|
Preview,
|
|
Section,
|
|
Tailwind,
|
|
Text,
|
|
} from "@react-email/components";
|
|
|
|
import { Footer } from "./shared/footer";
|
|
|
|
interface ConfirmEmailChangeProps {
|
|
email: string;
|
|
newEmail: string;
|
|
confirmUrl: string;
|
|
}
|
|
|
|
export function ConfirmEmailChange({
|
|
email = "[email protected]",
|
|
newEmail = "[email protected]",
|
|
confirmUrl = "https://dataroom.hanzo.ai",
|
|
}: ConfirmEmailChangeProps) {
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<Preview>Confirm your email address change</Preview>
|
|
<Tailwind>
|
|
<Body className="mx-auto my-auto bg-white font-sans">
|
|
<Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
|
|
<Section>
|
|
<Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
|
|
<span className="font-bold tracking-tighter">Hanzo Dataroom</span>
|
|
</Text>
|
|
<Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
|
|
Your Hanzo Dataroom Email Change Confirmation Link
|
|
</Heading>
|
|
</Section>
|
|
<Heading className="text-sm leading-6 text-black">
|
|
Confirm your email address change
|
|
</Heading>
|
|
<Text className="text-sm leading-6 text-black">
|
|
Follow this link to confirm the update to your email from{" "}
|
|
<strong>{email}</strong> to <strong>{newEmail}</strong>.
|
|
</Text>
|
|
<Section className="my-8 text-center">
|
|
<Link
|
|
href={confirmUrl}
|
|
className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
|
|
style={{ padding: "12px 20px" }}
|
|
>
|
|
Confirm email change
|
|
</Link>
|
|
</Section>
|
|
<Text className="text-sm leading-6 text-black">
|
|
or copy and paste this URL into your browser:
|
|
</Text>
|
|
<Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">
|
|
{confirmUrl.replace(/^https?:\/\//, "")}
|
|
</Text>
|
|
<Footer
|
|
footerText={
|
|
<>
|
|
This email was intended for{" "}
|
|
<span className="text-black">{email}</span>. If you were not
|
|
expecting this email, you can ignore this email. If you have
|
|
any feedback or questions about this email, simply reply to
|
|
it.
|
|
</>
|
|
}
|
|
/>
|
|
</Container>
|
|
</Body>
|
|
</Tailwind>
|
|
</Html>
|
|
);
|
|
}
|
|
|
|
export default ConfirmEmailChange;
|