Skip to content

Commit 4681d00

Browse files
committed
Add tooltip to Monthly Traffic label in PartnerAbout
Introduced a tooltip with clarification next to the 'Monthly traffic' label in the PartnerAbout component, indicating that the data is shared by the partner and not verified by Dub.
1 parent d263de2 commit 4681d00

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

apps/web/ui/partners/partner-about.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
} from "@/lib/partners/partner-profile";
99
import { EnrolledPartnerExtendedProps } from "@/lib/types";
1010
import { OnlinePresenceSummary } from "@/ui/partners/online-presence-summary";
11-
import { Icon } from "@dub/ui";
11+
import { Icon, Tooltip } from "@dub/ui";
12+
import { HelpCircle } from "lucide-react";
1213

1314
export function PartnerAbout({
1415
partner,
@@ -98,9 +99,14 @@ export function PartnerAbout({
9899

99100
{Boolean(partner.monthlyTraffic) && (
100101
<div className="flex flex-col gap-2">
101-
<h3 className="text-content-emphasis text-xs font-semibold">
102-
Monthly traffic
103-
</h3>
102+
<div className="flex items-center gap-1">
103+
<h3 className="text-content-emphasis text-xs font-semibold">
104+
Monthly traffic
105+
</h3>
106+
<Tooltip content="Shared by the partner, not verified by Dub.">
107+
<HelpCircle className="h-3.5 w-3.5 text-neutral-500" />
108+
</Tooltip>
109+
</div>
104110
<span className="text-content-default text-xs">
105111
{monthlyTrafficAmountsMap[partner.monthlyTraffic!]?.label ?? "-"}
106112
</span>

0 commit comments

Comments
 (0)