Skip to content

Commit 81a0f75

Browse files
committed
refactor: component touch ups
1 parent 06dc6ae commit 81a0f75

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

src/components/DeleteUserModal.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { useTemplateRef } from 'vue';
33
import { useRouter } from 'vue-router';
4+
import Password from 'primevue/password';
45
import { useAuthStore } from '@/stores/auth';
56
import { useAxiosForm } from '@/composables/useAxiosForm';
67
import { useFlashMessage } from '@/composables/useFlashMessage.js';
@@ -12,7 +13,8 @@ const authStore = useAuthStore();
1213
const router = useRouter();
1314
const { setFlashMessage } = useFlashMessage();
1415
15-
const passwordInput = useTemplateRef('password-input');
16+
type PasswordInputType = InstanceType<typeof Password>;
17+
const passwordInput = useTemplateRef<PasswordInputType>('password-input');
1618
1719
const {
1820
data: formData,

src/components/InputErrors.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<script setup lang="ts">
2-
defineProps({
3-
errors: {
4-
type: Array,
5-
},
6-
});
2+
defineProps<{
3+
errors?: string[]
4+
}>();
75
</script>
86

97
<template>

src/components/NavLogoLink.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ import ApplicationLogo from '@/components/ApplicationLogo.vue';
44

55
<template>
66
<Button
7-
v-slot="slotProps"
87
asChild
98
variant="link"
109
>
1110
<RouterLink
1211
:to="{ name: 'welcome' }"
13-
:class="slotProps.class"
1412
class="flex items-center justify-start gap-4 no-underline! p-0"
1513
>
1614
<ApplicationLogo class="block h-8 lg:h-10 w-auto fill-current text-surface-900 dark:text-surface-0" />
17-
<span class="font-bold">Laravel + PrimeVue Starter Kit</span>
15+
<span class="font-bold text-surface-900 dark:text-surface-0">Laravel + PrimeVue Starter Kit</span>
1816
</RouterLink>
1917
</Button>
2018
</template>

src/layouts/AppLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import AppLayout from '@/layouts/app/SidebarLayout.vue';
2+
import AppLayout from '@/layouts/app/HeaderLayout.vue';
33
import { type MenuItem } from '@/types';
44
55
const props = withDefaults(defineProps<{

0 commit comments

Comments
 (0)