Email invite design improvements (#8681)

closes #7140 

![image](https://github.com/user-attachments/assets/d3a31a49-8b37-4456-98e3-a16fbccb3786)
This commit is contained in:
nitin
2024-11-24 22:09:08 +05:30
committed by GitHub
parent bad7ad464b
commit 00791c3cd5
6 changed files with 31 additions and 31 deletions

View File

@ -1,21 +1,27 @@
import { ReactNode } from 'react';
import { Link as EmailLink } from '@react-email/components';
import { ReactNode } from 'react';
import { emailTheme } from 'src/common-style';
const linkStyle = {
color: emailTheme.font.colors.tertiary,
textDecoration: 'underline',
};
type LinkProps = {
value: ReactNode;
href: string;
color?: string;
};
export const Link = ({ value, href }: LinkProps) => {
export const Link = ({ value, href, color }: LinkProps) => {
return (
<EmailLink href={href} style={linkStyle}>
<EmailLink
href={href}
style={{
...linkStyle,
color: color ?? emailTheme.font.colors.tertiary,
}}
>
{value}
</EmailLink>
);