Update Subscription.tsx

This commit is contained in:
Egor
2026-01-21 06:43:44 +03:00
committed by GitHub
parent 3532d26ffa
commit 1880cffad9

View File

@@ -455,19 +455,21 @@ export default function Subscription() {
{t('subscription.getConfig')} {t('subscription.getConfig')}
</button> </button>
{/* Subscription URL */} {/* Subscription URL - hidden when hide_subscription_link is true */}
<div className="flex gap-2"> {!subscription.hide_subscription_link && (
<code className="flex-1 bg-dark-900/50 border border-dark-700/50 px-3 py-2 rounded-lg text-xs text-dark-300 overflow-x-auto scrollbar-hide break-all"> <div className="flex gap-2">
{subscription.subscription_url} <code className="flex-1 bg-dark-900/50 border border-dark-700/50 px-3 py-2 rounded-lg text-xs text-dark-300 overflow-x-auto scrollbar-hide break-all">
</code> {subscription.subscription_url}
<button </code>
onClick={copyUrl} <button
className={`btn-secondary px-3 ${copied ? 'text-success-400 border-success-500/30' : ''}`} onClick={copyUrl}
title={t('subscription.copyLink')} className={`btn-secondary px-3 ${copied ? 'text-success-400 border-success-500/30' : ''}`}
> title={t('subscription.copyLink')}
{copied ? <CheckIcon /> : <CopyIcon />} >
</button> {copied ? <CheckIcon /> : <CopyIcon />}
</div> </button>
</div>
)}
</div> </div>
)} )}