Files
RetroHub/resources/js/Features/Profile/Pages/Edit.vue
T

50 lines
1.6 KiB
Vue

<script setup lang="ts">
import AppLayout from '@/Shared/Layouts/AppLayout.vue';
import DeleteUserForm from '@/Features/Auth/Pages/Partials/DeleteUserForm.vue';
import UpdatePasswordForm from '@/Features/Auth/Pages/Partials/UpdatePasswordForm.vue';
import UpdateProfileInformationForm from '@/Features/Auth/Pages/Partials/UpdateProfileInformationForm.vue';
import { Head } from '@inertiajs/vue3';
defineProps({
mustVerifyEmail: {
type: Boolean,
},
status: {
type: String,
},
});
</script>
<template>
<Head title="Profile" />
<AppLayout>
<template #header>
<h2 class="text-xl font-semibold leading-tight text-gray-800 dark:text-gray-200">
Profile
</h2>
</template>
<div class="py-12">
<div class="mx-auto max-w-7xl space-y-6 sm:px-6 lg:px-8">
<div class="bg-white p-4 shadow sm:rounded-lg sm:p-8 dark:bg-gray-800">
<!-- @ts-expect-error user comes from page props via usePage -->
<UpdateProfileInformationForm
:must-verify-email="mustVerifyEmail"
:status="status"
class="max-w-xl"
/>
</div>
<div class="bg-white p-4 shadow sm:rounded-lg sm:p-8 dark:bg-gray-800">
<UpdatePasswordForm class="max-w-xl" />
</div>
<div class="bg-white p-4 shadow sm:rounded-lg sm:p-8 dark:bg-gray-800">
<DeleteUserForm class="max-w-xl" />
</div>
</div>
</div>
</AppLayout>
</template>