feat: add error boundary component and improve auth layout

This commit is contained in:
2026-02-21 14:04:01 +01:00
parent 619d84383f
commit f49326f8df
3 changed files with 57 additions and 4 deletions

View File

@@ -1,19 +1,22 @@
<script setup lang="ts">
import { Link } from '@inertiajs/vue3'
import { useAuth } from '@/composables/useAuth'
withDefaults(defineProps<{
size?: 'sm' | 'md' | 'lg'
showText?: boolean
linkToHome?: boolean
}>(), {
size: 'md',
showText: true,
linkToHome: true,
})
const { config } = useAuth()
</script>
<template>
<div class="flex items-center gap-3">
<component :is="linkToHome ? Link : 'div'" :href="linkToHome ? '/' : undefined" class="flex items-center gap-3">
<!--
Replace this placeholder with your actual logo:
<img src="/images/logo.svg" alt="Logo" :class="iconSizeClass">
@@ -40,5 +43,5 @@ const { config } = useAuth()
>
{{ config.appName }}
</span>
</div>
</component>
</template>