Skip to content

Commit 17e1995

Browse files
committed
refactor: use link components
1 parent ef77ff4 commit 17e1995

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

app/components/Header/AuthModal.client.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,13 @@ watch(handleInput, newHandleInput => {
108108
<span class="font-bold">npmx.dev</span>
109109
</template>
110110
<template #atproto>
111-
<a :href="atprotoLink" target="_blank" class="text-blue-400 hover:underline">
112-
AT Protocol
113-
</a>
111+
<LinkBase :to="atprotoLink"> AT Protocol </LinkBase>
114112
</template>
115113
<template #bluesky>
116-
<a href="https://bsky.app" target="_blank" class="text-blue-400 hover:underline">
117-
Bluesky
118-
</a>
114+
<LinkBase to="https://bsky.app"> Bluesky </LinkBase>
119115
</template>
120116
<template #tangled>
121-
<a href="https://tangled.org" target="_blank" class="text-blue-400 hover:underline">
122-
Tangled
123-
</a>
117+
<LinkBase to="https://tangled.org"> Tangled </LinkBase>
124118
</template>
125119
</i18n-t>
126120
</div>

app/components/Header/ConnectorModal.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,11 @@ function handleDisconnect() {
9696
<p class="text-sm text-fg-muted">
9797
<i18n-t keypath="connector.modal.contributor_notice" scope="global">
9898
<template #link>
99-
<a
100-
href="https://github.com/npmx-dev/npmx.dev/blob/main/CONTRIBUTING.md#local-connector-cli"
101-
target="_blank"
102-
rel="noopener noreferrer"
103-
class="text-blue-400 hover:underline"
99+
<LinkBase
100+
to="https://github.com/npmx-dev/npmx.dev/blob/main/CONTRIBUTING.md#local-connector-cli"
104101
>
105102
{{ $t('connector.modal.contributor_link') }}
106-
</a>
103+
</LinkBase>
107104
</template>
108105
</i18n-t>
109106
</p>

0 commit comments

Comments
 (0)