mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
Update ConnectionModal.tsx
This commit is contained in:
@@ -442,17 +442,20 @@ export default function ConnectionModal({ onClose }: ConnectionModalProps) {
|
|||||||
{t('subscription.connection.addToApp', { appName: selectedApp.name })}
|
{t('subscription.connection.addToApp', { appName: selectedApp.name })}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<button
|
{/* Copy link button - hidden when hideLink is true */}
|
||||||
onClick={copySubscriptionLink}
|
{!appConfig?.hideLink && (
|
||||||
className={`w-full h-11 rounded-xl border transition-all flex items-center justify-center gap-2 text-sm font-medium ${
|
<button
|
||||||
copied
|
onClick={copySubscriptionLink}
|
||||||
? 'border-success-500 bg-success-500/10 text-success-400'
|
className={`w-full h-11 rounded-xl border transition-all flex items-center justify-center gap-2 text-sm font-medium ${
|
||||||
: 'border-dark-600 text-dark-300 hover:bg-dark-800'
|
copied
|
||||||
}`}
|
? 'border-success-500 bg-success-500/10 text-success-400'
|
||||||
>
|
: 'border-dark-600 text-dark-300 hover:bg-dark-800'
|
||||||
{copied ? <CheckIcon /> : <CopyIcon />}
|
}`}
|
||||||
{copied ? t('subscription.connection.copied') : t('subscription.connection.copyLink')}
|
>
|
||||||
</button>
|
{copied ? <CheckIcon /> : <CopyIcon />}
|
||||||
|
{copied ? t('subscription.connection.copied') : t('subscription.connection.copyLink')}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user