-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #755 from Shelf-nu/bookings-bugs-fixes
Bookings bugs fixes
- Loading branch information
Showing
12 changed files
with
359 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Text, Link } from "@react-email/components"; | ||
import type { BookingForEmail } from "../types"; | ||
|
||
/** Footer used when sending normal user emails */ | ||
export const UserFooter = ({ booking }: { booking: BookingForEmail }) => ( | ||
<> | ||
<Text style={{ fontSize: "14px", color: "#344054" }}> | ||
This email was sent to{" "} | ||
<Link | ||
style={{ color: "#EF6820" }} | ||
href={`mailto:${booking.custodianUser!.email}`} | ||
> | ||
{booking.custodianUser!.email} | ||
</Link>{" "} | ||
because it is part of the workspace{" "} | ||
<span style={{ color: "#101828", fontWeight: "600" }}> | ||
"{booking.organization.name}" | ||
</span> | ||
. <br /> If you think you weren’t supposed to have received this email | ||
please{" "} | ||
<Link | ||
style={{ color: "#344054", textDecoration: "underline" }} | ||
href={`mailto:${booking.organization.owner.email}`} | ||
> | ||
contact the owner | ||
</Link>{" "} | ||
of the workspace. | ||
</Text> | ||
<Text style={{ marginBottom: "32px", fontSize: "14px", color: "#344054" }}> | ||
{" "} | ||
© 2024 Shelf.nu | ||
</Text> | ||
</> | ||
); | ||
|
||
/** Footer used when sending admin user emails */ | ||
export const AdminFooter = ({ booking }: { booking: BookingForEmail }) => ( | ||
<> | ||
<Text style={{ fontSize: "14px", color: "#344054" }}> | ||
This email was sent to you because you are the OWNER or ADMIN of the | ||
workspace{" "} | ||
<span style={{ color: "#101828", fontWeight: "600" }}> | ||
"{booking.organization.name}" | ||
</span> | ||
. <br /> If you think you weren’t supposed to have received this email | ||
please contact support. | ||
</Text> | ||
<Text style={{ marginBottom: "32px", fontSize: "14px", color: "#344054" }}> | ||
{" "} | ||
© 2024 Shelf.nu | ||
</Text> | ||
</> | ||
); |
Oops, something went wrong.