Skip to content

Commit

Permalink
Merge pull request #22 from rokde/patch-3
Browse files Browse the repository at this point in the history
[1.x] fix CORS error by using anchor instead of inertia-link
  • Loading branch information
joelbutcher authored Jan 2, 2021
2 parents b4c317a + 87a3ae1 commit 8f50565
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stubs/inertia/resources/js/Socialstream/ActionLink.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<template>
<inertia-link :href="href" class="inline-flex items-center px-4 py-2 bg-white border border-gray-800 rounded-md font-semibold text-xs text-gray-800 uppercase tracking-widest hover:bg-gray-200 hover:border-gray-600 active:border-gray-900 focus:outline-none focus:border-gray-900 focus:shadow-outline-gray disabled:opacity-25 transition ease-in-out duration-150">
<a :href="href" class="inline-flex items-center px-4 py-2 bg-white border border-gray-800 rounded-md font-semibold text-xs text-gray-800 uppercase tracking-widest hover:bg-gray-200 hover:border-gray-600 active:border-gray-900 focus:outline-none focus:border-gray-900 focus:shadow-outline-gray disabled:opacity-25 transition ease-in-out duration-150">
<slot></slot>
</inertia-link>
</a>
</template>

<script>
export default {
props: ['href'],
}
</script>
``

0 comments on commit 8f50565

Please sign in to comment.