Avoid optional Fortify route imports
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { Head, Link } from '@inertiajs/vue3';
|
||||
import { dashboard, login, register } from '@/routes/index';
|
||||
import { fortifyRoutes } from '@/lib/fortify';
|
||||
import { dashboard, login } from '@/routes/index';
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
@@ -40,7 +41,7 @@ withDefaults(
|
||||
</Link>
|
||||
<Link
|
||||
v-if="canRegister"
|
||||
:href="register()"
|
||||
:href="fortifyRoutes.register.create"
|
||||
class="inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]"
|
||||
>
|
||||
Register
|
||||
|
||||
Reference in New Issue
Block a user