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.

Add conditional logic section

Tim Wilson67d9c5cc8b70
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx
index bb2bd2e54b..aeef2c7854 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx
@@ -23,6 +23,7 @@ import {
Sheet,
SmartDateTimePicker,
Switch,
+ Trophy,
} from "@dub/ui";
import { cn } from "@dub/utils";
import { Dispatch, SetStateAction, useEffect, useMemo, useState } from "react";
@@ -325,6 +326,22 @@ function BountySheetContent({ setIsOpen }: BountySheetProps) {
</div>
)}
+ {type === "performance" && (
+ <div>
+ <span className="text-sm font-medium text-neutral-800">
+ Logic
+ </span>
+ <div className="mt-2 block flex w-full items-center gap-1.5 rounded-md border border-neutral-300 px-3 py-2">
+ <div className="flex size-7 shrink-0 items-center justify-center rounded-md bg-neutral-100">
+ <Trophy className="size-4 text-neutral-800" />
+ </div>
+ <span className="text-content-emphasis text-sm font-medium leading-relaxed">
+ When
+ </span>
+ </div>
+ </div>
+ )}
+
<div>
<label
htmlFor="description"
diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.ts
index c82dc4eb3a..cf2d695375 100644
--- a/packages/ui/src/icons/nucleo/index.ts
+++ b/packages/ui/src/icons/nucleo/index.ts
@@ -204,6 +204,7 @@ export * from "./toggle2-fill";
export * from "./toggles";
export * from "./trash";
export * from "./triangle-warning";
+export * from "./trophy";
export * from "./tv";
export * from "./ui-card";
export * from "./user";
diff --git a/packages/ui/src/icons/nucleo/trophy.tsx b/packages/ui/src/icons/nucleo/trophy.tsx
new file mode 100644
index 0000000000..eb2546c024
--- /dev/null
+++ b/packages/ui/src/icons/nucleo/trophy.tsx
@@ -0,0 +1,48 @@
+import { SVGProps } from "react";
+
+export function Trophy(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="M9.5 11.75C9.5 11.75 9.5 14.688 13.25 15.75H4.75C8.5 14.688 8.5 11.75 8.5 11.75"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ <path
+ d="M5.286 9C1.469 9 1.74999 3.75 1.74999 3.75H4.42949"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ <path
+ d="M12.714 9C16.532 9 16.25 3.75 16.25 3.75H13.5705"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ <path
+ d="M13.75 2.25C13.1562 8.159 11.583 11.4958 9.23749 11.75H8.76251C6.41701 11.4958 4.8438 8.159 4.25 2.25H13.75Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ </g>
+ </svg>
+ );
+}