chore(deps): bump oy-vey from 0.10.0 to 0.11.2 (#3902)
* chore(deps): bump oy-vey from 0.10.0 to 0.11.2 Bumps [oy-vey](https://github.com/oysterbooks/oy) from 0.10.0 to 0.11.2. - [Release notes](https://github.com/oysterbooks/oy/releases) - [Changelog](https://github.com/revivek/oy/blob/master/CHANGELOG.md) - [Commits](https://github.com/oysterbooks/oy/compare/0.10.0...0.11.2) --- updated-dependencies: - dependency-name: oy-vey dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * tsc Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import nodemailer, { Transporter } from "nodemailer";
|
||||
import Oy from "oy-vey";
|
||||
import * as React from "react";
|
||||
import env from "@server/env";
|
||||
import Logger from "@server/logging/Logger";
|
||||
import { APM } from "@server/logging/tracing";
|
||||
@@ -15,7 +14,7 @@ type SendMailOptions = {
|
||||
subject: string;
|
||||
previewText?: string;
|
||||
text: string;
|
||||
component: React.ReactNode;
|
||||
component: JSX.Element;
|
||||
headCSS?: string;
|
||||
};
|
||||
|
||||
@@ -66,7 +65,7 @@ export class Mailer {
|
||||
const html = Oy.renderTemplate(data.component, {
|
||||
title: data.subject,
|
||||
headCSS: [baseStyles, data.headCSS].join(" "),
|
||||
previewText: data.previewText,
|
||||
previewText: data.previewText ?? "",
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
@@ -3,7 +3,7 @@ import * as React from "react";
|
||||
import theme from "@shared/styles/theme";
|
||||
|
||||
const EmailLayout: React.FC = ({ children }) => (
|
||||
<Table width="550" padding="40">
|
||||
<Table width="550">
|
||||
<TBody>
|
||||
<TR>
|
||||
<TD align="left">{children}</TD>
|
||||
|
||||
Reference in New Issue
Block a user