diff --git a/src/frontend/src/modals/baseModal/index.tsx b/src/frontend/src/modals/baseModal/index.tsx index 142ad223b..f472fd1ea 100644 --- a/src/frontend/src/modals/baseModal/index.tsx +++ b/src/frontend/src/modals/baseModal/index.tsx @@ -47,7 +47,7 @@ interface BaseModalProps { open?: boolean; setOpen?: (open: boolean) => void; disable?: boolean; - size?: "smaller" | "small" | "medium" | "large" | "large-h-full"; + size?: "x-small" | "smaller" | "small" | "medium" | "large" | "large-h-full"; } function BaseModal({ open, @@ -73,6 +73,10 @@ function BaseModal({ let height: string; switch (size) { + case "x-small": + minWidth = "min-w-[20vw]"; + height = "h-[10vh]"; + break; case "smaller": minWidth = "min-w-[40vw]"; height = "h-[27vh]"; diff --git a/src/frontend/src/pages/deleteAccountPage/index.tsx b/src/frontend/src/pages/deleteAccountPage/index.tsx new file mode 100644 index 000000000..af219209b --- /dev/null +++ b/src/frontend/src/pages/deleteAccountPage/index.tsx @@ -0,0 +1,59 @@ +import { useState } from "react"; +import { Button } from "../../components/ui/button"; +import { Input } from "../../components/ui/input"; +import BaseModal from "../../modals/baseModal"; + +export default function DeleteAccountPage() { + const [showConfirmation, setShowConfirmation] = useState(false); + + const handleDeleteAccount = () => { + // Implement your account deletion logic here + // For example, make an API call to delete the account + // Upon successful deletion, you can redirect the user to another page + console.log("Account deleted!"); + // Implement the logic to redirect the user after account deletion. + // For example, use react-router-dom's useHistory hook. + }; + + return ( +