make links look like buttons
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s

This commit is contained in:
2026-03-14 16:09:32 -05:00
parent fef9af6e91
commit 4b38a5e597
2 changed files with 9 additions and 2 deletions

View File

@@ -22,7 +22,11 @@ onMounted(() => {
<tr v-for="user in store.users" :key="user.id"> <tr v-for="user in store.users" :key="user.id">
<td>{{ user.name }}</td> <td>{{ user.name }}</td>
<td> <td>
<router-link tag="button" :to="`/user/${user.id}`">Edit</router-link>
<router-link to="`/user/${user.id}`" custom v-slot="{ navigate }">
<button @click="navigate" role="link">Edit</button>
</router-link>
<button @click="store.removeUser(user.id)">Delete</button> <button @click="store.removeUser(user.id)">Delete</button>
</td> </td>
</tr> </tr>

View File

@@ -9,5 +9,8 @@
<h1>straight up gargoyling it !</h1> <h1>straight up gargoyling it !</h1>
<h3>yeah im so cool rn</h3> <h3>yeah im so cool rn</h3>
<h1>imagining what I could do with themes :o</h1> <h1>imagining what I could do with themes :o</h1>
<router-link tag="button" :to="`/users`">>Users</router-link>
<router-link to="/users" custom v-slot="{ navigate }">
<button @click="navigate" role="link">Users</button>
</router-link>
</template> </template>