From 7817a3c2fbaeef1f1a4c070deb11809124e957dc Mon Sep 17 00:00:00 2001 From: Mohammed Imran Date: Fri, 17 Oct 2025 23:10:09 +0530 Subject: [PATCH] chore: rename disable-2fa to configure-2fa --- .../settings/profile/{disable-2fa.tsx => configure-2fa.tsx} | 2 +- .../components/dashboard/settings/profile/profile-form.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename apps/dokploy/components/dashboard/settings/profile/{disable-2fa.tsx => configure-2fa.tsx} (99%) diff --git a/apps/dokploy/components/dashboard/settings/profile/disable-2fa.tsx b/apps/dokploy/components/dashboard/settings/profile/configure-2fa.tsx similarity index 99% rename from apps/dokploy/components/dashboard/settings/profile/disable-2fa.tsx rename to apps/dokploy/components/dashboard/settings/profile/configure-2fa.tsx index aea342b18..4bd858a8a 100644 --- a/apps/dokploy/components/dashboard/settings/profile/disable-2fa.tsx +++ b/apps/dokploy/components/dashboard/settings/profile/configure-2fa.tsx @@ -45,7 +45,7 @@ const PasswordSchema = z.object({ type PasswordForm = z.infer; type Step = "password" | "actions" | "backup-codes"; -export const Disable2FA = () => { +export const Configure2FA = () => { const utils = api.useUtils(); const [isDialogOpen, setIsDialogOpen] = useState(false); const [step, setStep] = useState("password"); diff --git a/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx b/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx index 79f18225e..42f0f05d7 100644 --- a/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx +++ b/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx @@ -29,7 +29,7 @@ import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; import { Switch } from "@/components/ui/switch"; import { generateSHA256Hash, getFallbackAvatarInitials } from "@/lib/utils"; import { api } from "@/utils/api"; -import { Disable2FA } from "./disable-2fa"; +import { Configure2FA } from "./configure-2fa"; import { Enable2FA } from "./enable-2fa"; const profileSchema = z.object({ @@ -157,7 +157,7 @@ export const ProfileForm = () => {
- {!data?.user.twoFactorEnabled ? : } + {!data?.user.twoFactorEnabled ? : }