Skip to content

Commit 9adffd1

Browse files
committed
Added a tooltip to explain the link to the pricing page
1 parent ac2c6d7 commit 9adffd1

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {
2+
ArrowUpRightIcon,
23
CheckIcon,
34
ExclamationTriangleIcon,
45
ShieldCheckIcon,
56
XMarkIcon,
67
} from "@heroicons/react/20/solid";
7-
import { ArrowDownCircleIcon, XCircleIcon } from "@heroicons/react/24/outline";
8+
import { ArrowDownCircleIcon } from "@heroicons/react/24/outline";
89
import { Form, useLocation, useNavigation } from "@remix-run/react";
910
import { ActionFunctionArgs } from "@remix-run/server-runtime";
1011
import { PlainClient, uiComponent } from "@team-plain/typescript-sdk";
11-
import { GitHubLightIcon } from "@trigger.dev/companyicons";
1212
import {
1313
FreePlanDefinition,
1414
Limits,
@@ -331,7 +331,7 @@ export function TierFree({
331331
<div className="relative">
332332
<PricingHeader title={plan.title} cost={0} />
333333
<TierLimit href="https://trigger.dev/pricing#computePricing">
334-
${plan.limits.includedUsage / 100} free usage
334+
${plan.limits.includedUsage / 100} free monthly usage
335335
</TierLimit>
336336
{showGithubVerificationBadge && status === "approved" && (
337337
<SimpleTooltip
@@ -810,21 +810,28 @@ function PricingHeader({
810810
function TierLimit({ children, href }: { children: React.ReactNode; href?: string }) {
811811
return (
812812
<>
813+
<hr className="my-6 border-grid-bright" />
813814
{href ? (
814-
<div>
815-
<hr className="my-6 border-grid-bright" />
816-
<a
817-
href={href}
818-
className="hover:decoration-bright font-sans text-lg font-normal text-text-bright underline decoration-charcoal-500 underline-offset-4 transition"
819-
>
820-
{children}
821-
</a>
822-
</div>
815+
<SimpleTooltip
816+
buttonClassName="text-left w-fit"
817+
disableHoverableContent
818+
button={
819+
<a
820+
href={href}
821+
className="text-left font-sans text-lg font-normal text-text-bright underline decoration-charcoal-500 underline-offset-4 transition hover:decoration-text-bright"
822+
>
823+
{children}
824+
</a>
825+
}
826+
content={
827+
<div className="flex items-center gap-1">
828+
<Paragraph variant="small">View detailed compute pricing information</Paragraph>
829+
<ArrowUpRightIcon className="size-4 text-text-dimmed" />
830+
</div>
831+
}
832+
/>
823833
) : (
824-
<div>
825-
<hr className="my-6 border-grid-bright" />
826-
<div className="font-sans text-lg font-normal text-text-bright">{children}</div>
827-
</div>
834+
<div className="font-sans text-lg font-normal text-text-bright">{children}</div>
828835
)}
829836
</>
830837
);

0 commit comments

Comments
 (0)