0.1.1
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
import { useRef } from 'react';
|
||||
import { useForm } from '@inertiajs/react';
|
||||
|
||||
import DangerButton from '@/components/DangerButton';
|
||||
import InputError from '@/components/InputError';
|
||||
import SecondaryButton from '@/components/SecondaryButton';
|
||||
import TextInput from '@/components/TextInput';
|
||||
import { useForm } from '@inertiajs/react';
|
||||
import { useRef, useState } from 'react';
|
||||
import {
|
||||
Dialog, DialogClose,
|
||||
DialogContent,
|
||||
DialogDescription, DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from "@/components/ui/dialog"
|
||||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card.jsx";
|
||||
import { Card, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"
|
||||
|
||||
export default function DeleteUserForm({ className = '' }) {
|
||||
export default function DeleteUserForm() {
|
||||
const passwordInput = useRef();
|
||||
|
||||
const {
|
||||
@@ -54,12 +48,12 @@ export default function DeleteUserForm({ className = '' }) {
|
||||
<DialogContent className="max-w-[800px]">
|
||||
<DialogHeader>
|
||||
<DialogTitle>Are you sure you want to delete your account?</DialogTitle>
|
||||
<DialogDescription className="pt-3">
|
||||
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.
|
||||
</DialogDescription>
|
||||
<DialogDescription className="pt-3">
|
||||
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.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div className="items-center gap-4">
|
||||
<TextInput id="password" type="password" name="password" ref={ passwordInput }
|
||||
|
||||
Reference in New Issue
Block a user