mirror of
https://github.com/docmost/docmost.git
synced 2026-05-21 17:22:54 +08:00
fix email button (#2017)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { container, footer, h1, logo, main } from '../css/styles';
|
||||
import { button as buttonStyle, container, footer, h1, logo, main } from '../css/styles';
|
||||
import {
|
||||
Body,
|
||||
Container,
|
||||
@@ -35,6 +35,47 @@ export function MailHeader() {
|
||||
);
|
||||
}
|
||||
|
||||
interface EmailButtonProps {
|
||||
href: string;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export function EmailButton({ href, children }: EmailButtonProps) {
|
||||
return (
|
||||
<table
|
||||
role="presentation"
|
||||
cellPadding="0"
|
||||
cellSpacing="0"
|
||||
style={{ margin: '0 0 15px 15px' }}
|
||||
>
|
||||
<tr>
|
||||
<td
|
||||
style={{
|
||||
backgroundColor: buttonStyle.backgroundColor,
|
||||
borderRadius: buttonStyle.borderRadius,
|
||||
textAlign: 'center' as const,
|
||||
}}
|
||||
>
|
||||
<a
|
||||
href={href}
|
||||
target="_blank"
|
||||
style={{
|
||||
color: buttonStyle.color,
|
||||
fontFamily: buttonStyle.fontFamily,
|
||||
fontSize: buttonStyle.fontSize,
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
padding: '8px 16px',
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
);
|
||||
}
|
||||
|
||||
export function MailFooter() {
|
||||
return (
|
||||
<Section style={footer}>
|
||||
|
||||
Reference in New Issue
Block a user