Skip to content

Commit a2b1bf9

Browse files
committed
refactor: update button styles in ConnectionLinks and ProminentSubscriptionLink components to use primary color scheme
1 parent 6c8acbf commit a2b1bf9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/connection-links.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const ConnectionLinks = memo(({ links }: ConnectionLinksProps) => {
104104
<button
105105
onClick={handleCopyAll}
106106
className={`group cursor-pointer flex items-center gap-2 px-3 py-1.5 text-sm rounded-lg transition-all duration-200 hover:scale-105 active:scale-95 hover:shadow-lg ${copyAllSuccess
107-
? 'bg-green-600 text-white hover:bg-green-700 shadow-green-600/25'
107+
? 'bg-primary text-primary-foreground hover:bg-primary/90 shadow-primary/25'
108108
: 'bg-primary text-primary-foreground hover:bg-primary/90 hover:shadow-primary/25'
109109
}`}
110110
title={copyAllSuccess ? t('apps.copyAllSuccess') : t('apps.copyAll')}
@@ -142,7 +142,7 @@ export const ConnectionLinks = memo(({ links }: ConnectionLinksProps) => {
142142
<button
143143
onClick={handleCopySubscription}
144144
className={`p-1.5 rounded transition-all cursor-pointer ${isCopied(subscriptionUrl)
145-
? 'bg-green-600 text-white'
145+
? 'bg-primary text-primary-foreground'
146146
: 'bg-muted hover:bg-primary hover:text-primary-foreground'
147147
}`}
148148
title={t('qr.copy')}
@@ -208,7 +208,7 @@ export const ConnectionLinks = memo(({ links }: ConnectionLinksProps) => {
208208
<button
209209
onClick={() => handleCopy(link)}
210210
className={`p-1.5 rounded transition-all cursor-pointer ${copied
211-
? 'bg-green-600 text-white'
211+
? 'bg-primary text-primary-foreground'
212212
: 'bg-muted hover:bg-primary hover:text-primary-foreground'
213213
}`}
214214
title={link.protocol === 'unknown' ? t('qr.copy') : t('configActions.copyConfig')}

src/components/prominent-subscription-link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const ProminentSubscriptionLink = memo(({ hasChart }: ProminentSubscripti
6969
onClick={handleCopy}
7070
className={`p-1.5 rounded transition-all cursor-pointer ${
7171
isCopied(subscriptionUrl)
72-
? 'bg-green-600 text-white'
72+
? 'bg-primary text-primary-foreground'
7373
: 'bg-muted hover:bg-primary hover:text-primary-foreground'
7474
}`}
7575
title={t('qr.copy')}

0 commit comments

Comments
 (0)