Skip to content

Commit d2cba1b

Browse files
tw4lemma-sg
andauthored
Apply suggestions from code review for email
Co-authored-by: Emma Segal-Grossman <[email protected]>
1 parent 0ad1644 commit d2cba1b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

emails/emails/crawl-auto-paused.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
formatRelativeDateToParts,
99
offsetDays,
1010
} from "../lib/date.js";
11-
import { Warning } from "../components/warning.js";
1211

1312
import { z } from "zod";
1413
import { trimTrailingSlash } from "../lib/url.js";
@@ -35,9 +34,7 @@ export const CrawlAutoPausedEmail = ({
3534
org_url,
3635
support_email
3736
}: CrawlAutoPausedEmailProps) => {
38-
const date = formatDate(paused_expiry);
3937
const daysLeft = differenceInDays(new Date(paused_expiry));
40-
const relative = formatRelativeDate(daysLeft, "days");
4138
const relativeParts = formatRelativeDateToParts(daysLeft, "days");
4239
return (
4340
<Template
@@ -104,7 +101,7 @@ export const CrawlAutoPausedEmail = ({
104101
</Text>
105102

106103
<Text className="text-base text-stone-700">
107-
The crawl will be stopped gracefully if it isn't resumed{" "}
104+
The crawl will be stopped gracefully if it isnt resumed{" "}
108105
{relativeParts.map((part, index) =>
109106
part.value !== "in " ? (
110107
<strong key={part.value + index} className="text-stone-900">
@@ -121,7 +118,7 @@ export const CrawlAutoPausedEmail = ({
121118
<>
122119
<Text className="text-base text-stone-700">
123120
In order to resume your crawl, you will need to free up storage
124-
space by either deleting archived items from your organization or
121+
space. You can delete archived items from your organization, or
125122
upgrade your subscription to one with more storage space from your
126123
organization’s{" "}
127124
<Link
@@ -138,8 +135,8 @@ export const CrawlAutoPausedEmail = ({
138135
<Text className="text-base text-stone-700">
139136
In order to resume your crawl, you will need to either wait until your
140137
monthly execution time quota resets, upgrade your subscription to one
141-
with a higher monthly execution time quota, or purchase additional one-off
142-
execution minutes from your organization's{" "}
138+
with a higher monthly execution time quota, or purchase additional
139+
one-off execution minutes from your organizations{" "}
143140
<Link
144141
className="text-cyan-600 font-bold"
145142
href={`${org_url}/settings/billing`}

0 commit comments

Comments
 (0)