chore: Email + mailer refactor (#3342)
* Huge email refactor * fix: One rename too many * comments
This commit is contained in:
24
server/emails/templates/components/Button.tsx
Normal file
24
server/emails/templates/components/Button.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as React from "react";
|
||||
|
||||
type Props = {
|
||||
href: string;
|
||||
};
|
||||
|
||||
const style: React.CSSProperties = {
|
||||
display: "inline-block",
|
||||
padding: "10px 20px",
|
||||
color: "#FFFFFF",
|
||||
background: "#000000",
|
||||
borderRadius: "4px",
|
||||
fontWeight: 500,
|
||||
textDecoration: "none",
|
||||
cursor: "pointer",
|
||||
};
|
||||
|
||||
const Button: React.FC<Props> = (props) => (
|
||||
<a {...props} style={style}>
|
||||
{props.children}
|
||||
</a>
|
||||
);
|
||||
|
||||
export default Button;
|
||||
Reference in New Issue
Block a user