fix: move reissue button to standalone block outside device_limit guard

The reissue button was inside the Additional Options card which is gated
by device_limit !== 0, so it was hidden when device_limit was 0. Move it
to its own card block with independent visibility condition.
This commit is contained in:
Fringg
2026-05-04 17:41:21 +03:00
parent f7cc445127
commit 60c835301d

View File

@@ -2292,9 +2292,22 @@ export default function Subscription() {
)} )}
</div> </div>
)} )}
</div>
)}
{/* Reissue Subscription */} {/* Reissue Subscription — standalone block, not dependent on device_limit */}
<div className="mt-4"> {subscription &&
(subscription.is_active || subscription.is_limited) &&
!subscription.is_trial && (
<div
className="relative overflow-hidden rounded-3xl"
style={{
background: g.cardBg,
border: `1px solid ${g.cardBorder}`,
boxShadow: g.shadow,
padding: '16px 20px',
}}
>
<button <button
onClick={handleRevoke} onClick={handleRevoke}
disabled={revokeMutation.isPending || revokeCooldown > 0} disabled={revokeMutation.isPending || revokeCooldown > 0}
@@ -2339,7 +2352,6 @@ export default function Subscription() {
<p className="mt-2 text-sm text-red-400">{getErrorMessage(revokeMutation.error)}</p> <p className="mt-2 text-sm text-red-400">{getErrorMessage(revokeMutation.error)}</p>
)} )}
</div> </div>
</div>
)} )}
{/* My Devices Section */} {/* My Devices Section */}