diff --git a/apps/web/src/project/components/delete-project-dialog.tsx b/apps/web/src/project/components/delete-project-dialog.tsx index 0086384e8..363d49632 100644 --- a/apps/web/src/project/components/delete-project-dialog.tsx +++ b/apps/web/src/project/components/delete-project-dialog.tsx @@ -10,6 +10,9 @@ import { import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; +import { useState } from "react"; + +const REQUIRED_CONFIRMATION_TEXT = "DELETE"; export function DeleteProjectDialog({ isOpen, @@ -25,6 +28,8 @@ export function DeleteProjectDialog({ const count = projectNames.length; const isSingle = count === 1; const singleName = isSingle ? projectNames[0] : null; + + const [confirmationInput, setConfirmationInput] = useState(""); return ( @@ -59,12 +64,15 @@ export function DeleteProjectDialog({
-