Avoid optional Fortify route imports
linter / quality (pull_request) Successful in 1m22s
tests / ci (8.4) (pull_request) Successful in 1m35s

This commit is contained in:
2026-05-22 23:33:01 +00:00
parent fd0d6ac6d6
commit 94e32497b0
14 changed files with 76 additions and 32 deletions
+3 -2
View File
@@ -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