fix(subscription): use the nav SubscriptionIcon on the quick-renew button

The inline single sparkle didn't match the two-star sparkle shown in the nav.
Render the same SubscriptionIcon component so the button matches the nav exactly.
This commit is contained in:
c0mrade
2026-05-31 19:38:57 +03:00
parent 493de23a1d
commit 5340f81a95

View File

@@ -10,6 +10,7 @@ import { useCurrency } from '../../hooks/useCurrency';
import { useHapticFeedback } from '../../platform/hooks/useHaptic'; import { useHapticFeedback } from '../../platform/hooks/useHaptic';
import { getGlassColors } from '../../utils/glassTheme'; import { getGlassColors } from '../../utils/glassTheme';
import { getInsufficientBalanceError } from '../../utils/subscriptionHelpers'; import { getInsufficientBalanceError } from '../../utils/subscriptionHelpers';
import { SubscriptionIcon } from '@/components/icons';
interface SubscriptionCardExpiredProps { interface SubscriptionCardExpiredProps {
subscription: Subscription; subscription: Subscription;
@@ -311,19 +312,7 @@ export default function SubscriptionCardExpired({
aria-hidden="true" aria-hidden="true"
/> />
) : ( ) : (
<svg <SubscriptionIcon className="h-4 w-4" />
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
>
<path d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09z" />
</svg>
)} )}
{isRenewing {isRenewing
? t('common.loading') ? t('common.loading')