Skip to content

Commit 750294a

Browse files
committed
refactor: replace copy button
1 parent 1f81b90 commit 750294a

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

app/components/Header/ConnectorModal.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,12 @@ function handleDisconnect() {
120120
>
121121
<span class="text-fg-subtle">$</span>
122122
<span class="text-fg-subtle ms-2">pnpm npmx-connector</span>
123-
<button
124-
type="button"
123+
<ButtonBase
125124
:aria-label="copied ? $t('connector.modal.copied') : $t('connector.modal.copy_command')"
126-
class="ms-auto text-fg-subtle p-1.5 -m-1.5 hover:text-fg transition-colors duration-200 focus-visible:outline-accent/70 rounded"
127125
@click="copy('pnpm npmx-connector')"
128-
>
129-
<span v-if="!copied" class="i-carbon:copy block w-5 h-5" aria-hidden="true" />
130-
<span v-else class="i-carbon:checkmark block w-5 h-5 text-green-500" aria-hidden="true" />
131-
</button>
126+
class="ms-auto"
127+
:classicon="copied ? 'i-carbon:checkmark text-green-500' : 'i-carbon:copy'"
128+
/>
132129
</div>
133130

134131
<!-- TODO: Uncomment when npmx-connector is published to npm

0 commit comments

Comments
 (0)