Skip to content

Commit

Permalink
use inertia link
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 1, 2020
1 parent 7ab323c commit 991457c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions stubs/inertia/resources/js/Jetstream/DropdownLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<slot></slot>
</button>

<a :href="href" class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out" v-else>
<inertia-link :href="href" class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out" v-else>
<slot></slot>
</a>
</inertia-link>
</div>
</template>

Expand Down
6 changes: 3 additions & 3 deletions stubs/inertia/resources/js/Jetstream/NavLink.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<a :class="classes">
<inertia-link :href="href" :class="classes">
<slot></slot>
</a>
</inertia-link>
</template>

<script>
export default {
props: ['active'],
props: ['href', 'active'],
computed: {
classes() {
Expand Down
4 changes: 2 additions & 2 deletions stubs/inertia/resources/js/Jetstream/ResponsiveNavLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<slot></slot>
</button>

<a :href="href" :class="classes" v-else>
<inertia-link :href="href" :class="classes" v-else>
<slot></slot>
</a>
</inertia-link>
</div>
</template>

Expand Down

0 comments on commit 991457c

Please sign in to comment.