mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
Update Subscription.tsx
This commit is contained in:
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user