diff --git a/app/components/errors/index.tsx b/app/components/errors/index.tsx
index 1767a891b..e025dd83e 100644
--- a/app/components/errors/index.tsx
+++ b/app/components/errors/index.tsx
@@ -63,17 +63,17 @@ export const ErrorBoundryComponent = ({
}
} else if (error instanceof Error) {
return (
- <>
-
- {NODE_ENV === "development" ?
{error.stack}
: null}
- >
+ {error.message}
+ ) : (
+ "Please try again and if the issue persists, contact support"
+ )
+ }
+ />
+
);
} else {
return (
diff --git a/app/emails/bookings-updates-template.tsx b/app/emails/bookings-updates-template.tsx
index d55808453..444cf2313 100644
--- a/app/emails/bookings-updates-template.tsx
+++ b/app/emails/bookings-updates-template.tsx
@@ -1,8 +1,6 @@
import {
Button,
Html,
- Text,
- Link,
Head,
render,
Container,
@@ -11,6 +9,7 @@ import {
import type { ClientHint } from "~/modules/booking/types";
import { getDateTimeFormatFromHints } from "~/utils/client-hints";
import { SERVER_URL } from "~/utils/env";
+import { AdminFooter, UserFooter } from "./components/footers";
import { LogoForEmail } from "./logo";
import { styles } from "./styles";
import type { BookingForEmail } from "./types";
@@ -21,6 +20,7 @@ interface Props {
assetCount: number;
hints: ClientHint;
hideViewButton?: boolean;
+ isAdminEmail?: boolean;
}
export function BookingUpdatesEmailTemplate({
@@ -29,6 +29,7 @@ export function BookingUpdatesEmailTemplate({
hints,
assetCount,
hideViewButton = false,
+ isAdminEmail = false,
}: Props) {
const fromDate = getDateTimeFormatFromHints(hints, {
dateStyle: "short",
@@ -95,34 +96,11 @@ export function BookingUpdatesEmailTemplate({
)}
-
- This email was sent to{" "}
-
- {booking.custodianUser!.email}
- {" "}
- because it is part of the workspace{" "}
-
- "{booking.organization.name}"
-
- .
If you think you weren’t supposed to have received this email
- please{" "}
-
- contact the owner
- {" "}
- of the workspace.
-
-
- {" "}
- © 2024 Shelf.nu
-
+ {isAdminEmail ? (
+
+ ) : (
+
+ )}