From 8df1e6c5b1569973c0f1cfecbe0fa73ee49bdc47 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Sun, 24 May 2026 18:07:49 +0100 Subject: [PATCH] =?UTF-8?q?fix(landing):=20credit=20tooltip=20=E2=80=94=20?= =?UTF-8?q?Tooltip=20=E2=86=92=20Popover=20for=20click-triggered=20behavio?= =?UTF-8?q?ur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/landing/Pricing.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/landing/Pricing.tsx b/src/components/landing/Pricing.tsx index 4f860e88..223828c2 100644 --- a/src/components/landing/Pricing.tsx +++ b/src/components/landing/Pricing.tsx @@ -2,7 +2,7 @@ import { useState, useEffect, useCallback } from 'react'; import { motion } from 'framer-motion'; import { useNavigate } from 'react-router-dom'; import { CheckCircle2, Info, RefreshCw } from 'lucide-react'; -import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; +import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { fadeUp, staggerChildren, viewportOnce } from '@/lib/motion'; import { billingApi } from '@/lib/api'; import { useTranslation } from 'react-i18next'; @@ -41,21 +41,21 @@ function buildFeatures(pack: CreditPack, personaCost: number, runCost: number): function CreditTooltip({ personaCost, runCost }: { personaCost: number; runCost: number }) { const { t } = useTranslation(); return ( - - + + - - + +

{t('pricing.tooltip_persona')} = {personaCost} credits
{t('pricing.tooltip_run')} = {runCost} credits
{t('pricing.tooltip_credits_never_expire')} {t('pricing.tooltip_trial')}

-
-
+ + ); }