You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

  1. import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout';
  2. import DeleteUserForm from './Partials/DeleteUserForm';
  3. import UpdatePasswordForm from './Partials/UpdatePasswordForm';
  4. import UpdateProfileInformationForm from './Partials/UpdateProfileInformationForm';
  5. import { Head } from '@inertiajs/react';
  6. import { PageProps } from '@/types';
  7. export default function Edit({ auth, mustVerifyEmail, status }: PageProps<{ mustVerifyEmail: boolean, status?: string }>) {
  8. return (
  9. <AuthenticatedLayout
  10. user={auth.user}
  11. >
  12. <Head title="Profile" />
  13. <div className="py-12">
  14. <div className="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6">
  15. <div className="p-4 sm:p-8 bg-white shadow sm:rounded-lg">
  16. <UpdateProfileInformationForm
  17. mustVerifyEmail={mustVerifyEmail}
  18. status={status}
  19. className="max-w-xl"
  20. />
  21. </div>
  22. <div className="p-4 sm:p-8 bg-white shadow sm:rounded-lg">
  23. <UpdatePasswordForm className="max-w-xl" />
  24. </div>
  25. <div className="p-4 sm:p-8 bg-white shadow sm:rounded-lg">
  26. <DeleteUserForm className="max-w-xl" />
  27. </div>
  28. </div>
  29. </div>
  30. </AuthenticatedLayout>
  31. );
  32. }