Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update bounty-rejected.tsx

Kiran Kdd4c2b032dd3
diff --git a/packages/email/src/templates/bounty-rejected.tsx b/packages/email/src/templates/bounty-rejected.tsx
index e69de29bb2..e1843005a1 100644
--- a/packages/email/src/templates/bounty-rejected.tsx
+++ b/packages/email/src/templates/bounty-rejected.tsx
@@ -0,0 +1,97 @@
+import { DUB_WORDMARK } from "@dub/utils";
+import {
+ Body,
+ Container,
+ Head,
+ Heading,
+ Html,
+ Img,
+ Link,
+ Preview,
+ Section,
+ Tailwind,
+ Text,
+} from "@react-email/components";
+import { Footer } from "../components/footer";
+
+export default function BountyRejected({
+ bounty = {
+ name: "Promote Acme at your campus and earn $500 ",
+ },
+ program = {
+ name: "Acme",
+ slug: "acme",
+ supportEmail: "[email protected]",
+ },
+ submission = {
+ rejectionReason: "Not a valid URL",
+ },
+ email = "[email protected]",
+}: {
+ bounty: {
+ name: string;
+ };
+ program: {
+ slug: string;
+ name: string;
+ supportEmail: string;
+ };
+ submission: {
+ rejectionReason: string;
+ };
+ email: string;
+}) {
+ return (
+ <Html>
+ <Head />
+ <Preview>Bounty rejected</Preview>
+ <Tailwind>
+ <Body className="mx-auto my-auto bg-white font-sans">
+ <Container className="mx-auto my-8 max-w-[600px] px-8 py-8">
+ <Section className="mt-8">
+ <Img src={DUB_WORDMARK} height="32" alt="Dub" />
+ </Section>
+
+ <Heading className="mx-0 my-8 p-0 text-lg font-medium text-black">
+ Bounty rejected
+ </Heading>
+
+ <Text className="text-sm leading-5 text-neutral-600">
+ The proof you’ve submitted for the <strong>{bounty.name}</strong>{" "}
+ bounty has been rejected for the reason:
+ </Text>
+
+ <Section className="flex h-[52px] items-center rounded-lg border border-solid border-neutral-200 bg-neutral-100 p-4">
+ <span className="text-sm font-normal">
+ {submission.rejectionReason}
+ </span>
+ </Section>
+
+ <Text className="text-sm leading-5 text-neutral-600">
+ You won’t be able to submit proof again for this bounty.
+ </Text>
+
+ <Text className="text-sm leading-5 text-neutral-600">
+ If you have any questions about the program please don’t hesitate
+ to reach out to the <strong>{program.name}</strong> team{" "}
+ <span className="font-semibold text-blue-600">
+ ({program.supportEmail})
+ </span>
+ </Text>
+
+ <Section className="mb-10 mt-6">
+ <Link
+ className="rounded-lg bg-neutral-900 px-6 py-3 text-[13px] font-medium text-white no-underline"
+ href={`https://partners.dub.co/programs/${program.slug}`}
+ >
+ Go to your dashboard
+ </Link>
+ </Section>
+
+ <Footer email={email} />
+ </Container>
+ </Body>
+ </Tailwind>
+ </Html>
+ );
+}