mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 12:29:42 +00:00
💄 Refactor email templates and components for improved styling (#2451)
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
import { Link as EmailLink } from "@react-email/components"
|
||||
|
||||
type LinkProps = React.PropsWithChildren & { href: string }
|
||||
|
||||
export const Link = ({ children, href }: LinkProps) => (
|
||||
<a href={href} className="text-brand-dark underline break-all">
|
||||
<EmailLink href={href} style={linkStyle}>
|
||||
{children}
|
||||
</a>
|
||||
</EmailLink>
|
||||
)
|
||||
|
||||
const linkStyle = {
|
||||
color: "#00695c",
|
||||
textDecoration: "underline",
|
||||
wordBreak: "break-all" as const,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user