chore: [app-router-migration-1] migrate the pages in settings/admin to the app directory (#12561)

Co-authored-by: Dmytro Hryshyn <[email protected]>
Co-authored-by: DmytroHryshyn <[email protected]>
Co-authored-by: zomars <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-12-01 13:07:26 -07:00
1 parent d13dedda9a
commit ca78be011c
83 files changed
+1193 -165

No files matched your search

+2 -3
View File
@@ -1,12 +1,11 @@
import * as ReactDOMServer from "react-dom/server";
import * as templates from "./templates";
function renderEmail<K extends keyof typeof templates>(
async function renderEmail<K extends keyof typeof templates>(
template: K,
props: React.ComponentProps<(typeof templates)[K]>
) {
const Component = templates[template];
const ReactDOMServer = (await import("react-dom/server")).default;
return (
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error