From 9783f7bf63ffeebd8fdf9efcb31d4da857bad5b0 Mon Sep 17 00:00:00 2001 From: Amine Date: Wed, 23 Oct 2024 15:16:56 +0100 Subject: [PATCH] fixes --- .../src/api/store/email/_templates/order-confirmation.tsx | 7 ++++--- .../api/store/email/_templates/shipping-confirmation.tsx | 7 ++++--- backend/src/api/store/email/_templates/welcome.tsx | 8 ++++++-- storefront/actions/newsletter/index.ts | 2 ++ 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/backend/src/api/store/email/_templates/order-confirmation.tsx b/backend/src/api/store/email/_templates/order-confirmation.tsx index 5db45ce..bad0fe0 100644 --- a/backend/src/api/store/email/_templates/order-confirmation.tsx +++ b/backend/src/api/store/email/_templates/order-confirmation.tsx @@ -1,5 +1,5 @@ import { BigNumberValue, OrderDTO } from "@medusajs/framework/types"; -import { Heading, Section } from "@react-email/components"; +import { Heading, Img, Section } from "@react-email/components"; import Cart from "./components/cart"; import EmailBody from "./components/email-body"; import Layout from "./components/layout"; @@ -18,8 +18,9 @@ export default function OrderConfirmation({ order }: { order: OrderDTO }) { return ( -
- +
+ + Thank you for your order! -
- +
+ + Your order is on its way! -
+
+ Get ready for some sweet! 🍪 diff --git a/storefront/actions/newsletter/index.ts b/storefront/actions/newsletter/index.ts index 7b71fb4..ebea9ed 100644 --- a/storefront/actions/newsletter/index.ts +++ b/storefront/actions/newsletter/index.ts @@ -25,6 +25,8 @@ export async function newsletterForm( }), headers: { "Content-Type": "application/json", + "X-Publishable-Api-Key": + process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY!, }, method: "post", },