Make magic link expiry warning more visible

Users were missing the expiry notice and hitting link errors. Replace the
small gray footer text with a prominent yellow callout box in the HTML
email, and prefix the plain-text version with IMPORTANT.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-06-05 08:29:34 +02:00
parent 1998052a0d
commit 11d6f8606c
2 changed files with 22 additions and 5 deletions

View File

@@ -18,7 +18,6 @@ import EmailLayout, {
bodyText,
button,
buttonContainer,
footerText,
} from "./components/EmailLayout";
export const MagicLink = () => {
@@ -32,11 +31,29 @@ export const MagicLink = () => {
</Button>
</Section>
<Text style={footerText}>
This link will expire in {"{{.DurationInMinutes}}"} minutes.
</Text>
<Section style={expiryBox}>
<Text style={expiryText}>
{"⚠️ This link expires in {{.DurationInMinutes}} minutes. Use it promptly after receiving this email."}
</Text>
</Section>
</EmailLayout>
);
};
const expiryBox: React.CSSProperties = {
backgroundColor: "#fff8e1",
border: "1px solid #f9a825",
borderRadius: "6px",
padding: "12px 16px",
marginTop: "8px",
};
const expiryText: React.CSSProperties = {
margin: "0",
color: "#7a5900",
fontSize: "14px",
fontWeight: "600",
lineHeight: "20px",
};
export default MagicLink;

View File

@@ -6,7 +6,7 @@ Please use this link to connect to {{.OrganizationName}}'s Compliance Page:
{{.MagicLinkURL}}
This link will expire in {{.DurationInMinutes}} minutes.
IMPORTANT: This link expires in {{.DurationInMinutes}} minutes. Use it promptly after receiving this email.
{{.SenderCompanyHeadquarterAddress}}
Powered By Prob