stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx in kaze-0.8.0 vs stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx in kaze-0.9.0
- old
+ new
@@ -6,15 +6,11 @@
import SecondaryButton from '@/Components/SecondaryButton'
import TextInput from '@/Components/TextInput'
import { useForm } from '@inertiajs/react'
import { profile_destroy_path } from '@/routes'
-export default function DeleteUserForm({
- className = '',
-}: {
- className?: string
-}) {
+export default function DeleteUserForm({ className = '' }: { className?: string }) {
const [confirmingUserDeletion, setConfirmingUserDeletion] = useState(false)
const passwordInput = useRef<HTMLInputElement>(null)
const {
data,
@@ -52,35 +48,27 @@
<section className={`space-y-6 ${className}`}>
<header>
<h2 className="text-lg font-medium text-gray-900">Delete Account</h2>
<p className="mt-1 text-sm text-gray-600">
- Once your account is deleted, all of its resources and data will be
- permanently deleted. Before deleting your account, please download any
- data or information that you wish to retain.
+ Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your
+ account, please download any data or information that you wish to retain.
</p>
</header>
<DangerButton onClick={confirmUserDeletion}>Delete Account</DangerButton>
<Modal show={confirmingUserDeletion} onClose={closeModal}>
<form onSubmit={deleteUser} className="p-6">
- <h2 className="text-lg font-medium text-gray-900">
- Are you sure you want to delete your account?
- </h2>
+ <h2 className="text-lg font-medium text-gray-900">Are you sure you want to delete your account?</h2>
<p className="mt-1 text-sm text-gray-600">
- Once your account is deleted, all of its resources and data will be
- permanently deleted. Please enter your password to confirm you would
- like to permanently delete your account.
+ Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your
+ password to confirm you would like to permanently delete your account.
</p>
<div className="mt-6">
- <InputLabel
- htmlFor="password"
- value="Password"
- className="sr-only"
- />
+ <InputLabel htmlFor="password" value="Password" className="sr-only" />
<TextInput
id="password"
type="password"
name="password"