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 tooltip

Tim Wilson854a4619ff5b
diff --git a/apps/web/ui/partners/rewards/add-edit-reward-sheet.tsx b/apps/web/ui/partners/rewards/add-edit-reward-sheet.tsx
index d0b3261ae8..36d65b2aad 100644
--- a/apps/web/ui/partners/rewards/add-edit-reward-sheet.tsx
+++ b/apps/web/ui/partners/rewards/add-edit-reward-sheet.tsx
@@ -26,6 +26,7 @@ import {
MoneyBills2,
Pen2,
Sheet,
+ Tooltip,
TooltipContent,
useRouterStuff,
} from "@dub/ui";
@@ -394,21 +395,31 @@ function RewardSheetContent({
)}
</span>
</div>
- <Button
- variant="secondary"
- className={cn(
- "size-7 p-0",
- description !== null && "text-blue-600",
- )}
- icon={<Pen2 className="size-3.5" />}
- onClick={() =>
- setValue(
- "description",
- description === null ? "" : null,
- { shouldDirty: true },
- )
+ <Tooltip
+ content={
+ description === null
+ ? "Add a custom reward description"
+ : "Remove custom reward description"
}
- />
+ >
+ <div className="shrink-0">
+ <Button
+ variant="secondary"
+ className={cn(
+ "size-7 p-0",
+ description !== null && "text-blue-600",
+ )}
+ icon={<Pen2 className="size-3.5" />}
+ onClick={() =>
+ setValue(
+ "description",
+ description === null ? "" : null,
+ { shouldDirty: true },
+ )
+ }
+ />
+ </div>
+ </Tooltip>
</div>
<motion.div
initial={false}