Skip to content

Commit

Permalink
feat: redesign Tooltip usage in premium page (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev authored Oct 24, 2024
1 parent 58c3ad0 commit f191366
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions client/app/premium/content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { IoCheckmarkCircle } from 'react-icons/io5';
import FaQs from '@/app/premium/components/FaQs';
import { LuShieldQuestion } from 'react-icons/lu';
import Tooltip from '@/app/components/Tooltip';
import { BiSolidInfoCircle } from 'react-icons/bi';
import { t } from '@/stores/language';

const BricolageGrotesque = Bricolage_Grotesque({ subsets: ['latin'], display: 'swap', adjustFontFallback: false });
Expand Down Expand Up @@ -325,23 +324,13 @@ export default function Page({ plans }) {
className='flex items-center justify-between p-4 first:rounded-t-xl last:rounded-b-xl odd:bg-secondary even:bg-tertiary'
key={index}
>
<h2 className='flex w-full items-center gap-x-2 text-sm font-semibold text-tertiary'>
{feature.label}

{feature.info && (
<Tooltip
side='left'
content={feature.info}
>
<div>
<BiSolidInfoCircle
className='text-tertiary'
size={18}
/>
</div>
</Tooltip>
)}
</h2>
<div className='flex w-full'>
<Tooltip content={feature.info}>
<h2 className='cursor-help text-sm font-semibold text-tertiary underline decoration-dotted underline-offset-4'>
{feature.label}
</h2>
</Tooltip>
</div>

<div className='flex w-full justify-center text-sm font-medium'>
{feature.available_to.find(item => item.id === 'free').value}
Expand Down

0 comments on commit f191366

Please sign in to comment.