Avoid optional Fortify route imports
This commit is contained in:
@@ -8,10 +8,9 @@ import { Checkbox } from '@/components/ui/checkbox';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Spinner } from '@/components/ui/spinner';
|
||||
import { fortifyRoutes } from '@/lib/fortify';
|
||||
import AuthBase from '@/layouts/AuthLayout.vue';
|
||||
import { register } from '@/routes/index';
|
||||
import { store } from '@/routes/login';
|
||||
import { request } from '@/routes/password';
|
||||
|
||||
defineProps<{
|
||||
status?: string;
|
||||
@@ -61,7 +60,7 @@ defineProps<{
|
||||
<Label for="password">Password</Label>
|
||||
<TextLink
|
||||
v-if="canResetPassword"
|
||||
:href="request()"
|
||||
:href="fortifyRoutes.password.request"
|
||||
class="text-sm"
|
||||
:tabindex="5"
|
||||
>
|
||||
@@ -103,7 +102,9 @@ defineProps<{
|
||||
v-if="canRegister"
|
||||
>
|
||||
Don't have an account?
|
||||
<TextLink :href="register()" :tabindex="5">Sign up</TextLink>
|
||||
<TextLink :href="fortifyRoutes.register.create" :tabindex="5">
|
||||
Sign up
|
||||
</TextLink>
|
||||
</div>
|
||||
</Form>
|
||||
</AuthBase>
|
||||
|
||||
Reference in New Issue
Block a user