MED-197: improve analysis compare page

This commit is contained in:
Danel Kungla
2025-10-07 18:07:59 +03:00
parent 258bd62a7f
commit 57f992a5c3
14 changed files with 218 additions and 18 deletions

View File

@@ -18,14 +18,16 @@ export const PackageHeader = ({
return (
<div className="space-y-1 text-center">
<p className="text-sm sm:text-lg sm:font-medium">{title}</p>
<h2 className="text-xl sm:text-4xl">
<h2 className="xs:text-xl text-lg sm:text-4xl">
{formatCurrency({
currencyCode: 'eur',
locale: language,
value: price,
})}
</h2>
<Badge className={cn('text-xs', tagColor)}>{analysesNr}</Badge>
<Badge className={cn('xs:text-xs text-[10px]', tagColor)}>
{analysesNr}
</Badge>
</div>
);
};

View File

@@ -117,6 +117,7 @@ export default function SelectAnalysisPackage({
<Button
className="w-full text-[10px] sm:text-sm"
onClick={handleSelect}
disabled={isAddingToCart}
>
{isAddingToCart ? (
<Spinner />