Email invite design improvements (#8681)
closes #7140 
This commit is contained in:
@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user