The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add Discounts page
Tim Wilsonfbb68d94e362
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/discounts/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/discounts/page-client.tsxnew file mode 100644index 0000000000..c4b9a78e9d--- /dev/null+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/discounts/page-client.tsx@@ -0,0 +1,22 @@+"use client";++import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";+import { Discount } from "@dub/ui/icons";++export function ProgramSettingsDiscountsPageClient() {+ return (+ <AnimatedEmptyState+ title="Discounts"+ description="Offer discounts to partners when they refer customers"+ cardContent={() => {+ return (+ <>+ <Discount className="size-4 text-neutral-700" />+ <div className="h-2.5 w-24 min-w-0 rounded-sm bg-neutral-200" />+ </>+ );+ }}+ pillContent="Coming soon"+ />+ );+}diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/discounts/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/discounts/page.tsxnew file mode 100644index 0000000000..92f7dfa22d--- /dev/null+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/discounts/page.tsx@@ -0,0 +1,5 @@+import { ProgramSettingsDiscountsPageClient } from "./page-client";++export default function ProgramSettingsDiscountsPage() {+ return <ProgramSettingsDiscountsPageClient />;+}diff --git a/packages/ui/src/icons/nucleo/discount.tsx b/packages/ui/src/icons/nucleo/discount.tsxnew file mode 100644index 0000000000..d8df05f79c--- /dev/null+++ b/packages/ui/src/icons/nucleo/discount.tsx@@ -0,0 +1,37 @@+import { SVGProps } from "react";++export function Discount(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="currentColor">+ <path+ d="M15.718,8.293l-1.468-1.468v-2.075c0-.552-.448-1-1-1h-2.075l-1.468-1.468c-.391-.39-1.024-.39-1.414,0l-1.468,1.468h-2.075c-.552,0-1,.448-1,1v2.075l-1.468,1.468c-.391,.39-.391,1.024,0,1.414l1.468,1.468v2.075c0,.552,.448,1,1,1h2.075l1.468,1.468c.391,.39,1.024,.39,1.414,0l1.468-1.468h2.075c.552,0,1-.448,1-1v-2.075l1.468-1.468c.391-.39,.391-1.024,0-1.414Z"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <circle cx="7" cy="7" fill="currentColor" r="1" stroke="none" />+ <circle cx="11" cy="11" fill="currentColor" r="1" stroke="none" />+ <line+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="6.75"+ x2="11.25"+ y1="11.25"+ y2="6.75"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.tsindex 06f455362a..8913ff9f77 100644--- a/packages/ui/src/icons/nucleo/index.ts+++ b/packages/ui/src/icons/nucleo/index.ts@@ -62,6 +62,7 @@ export * from "./cursor-rays";export * from "./database-key";export * from "./desktop";export * from "./diamond-turn-right";+export * from "./discount";export * from "./dots";export * from "./download";export * from "./duplicate";