mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-07 12:32:16 +00:00
refactor: standardize translation usage across components and pages by removing specific namespace references
This commit is contained in:
@@ -56,7 +56,7 @@ type PinForm = z.infer<typeof PinSchema>;
|
||||
|
||||
export const Enable2FA = () => {
|
||||
const utils = api.useUtils();
|
||||
const { t } = useTranslation("settings");
|
||||
const { t } = useTranslation();
|
||||
const [data, setData] = useState<TwoFactorSetupData | null>(null);
|
||||
const [backupCodes, setBackupCodes] = useState<string[]>([]);
|
||||
const [isDialogOpen, setIsDialogOpen] = useState(false);
|
||||
|
||||
@@ -62,7 +62,7 @@ export const ProfileForm = () => {
|
||||
isError,
|
||||
error,
|
||||
} = api.user.update.useMutation();
|
||||
const { t } = useTranslation("settings");
|
||||
const { t } = useTranslation();
|
||||
const [gravatarHash, setGravatarHash] = useState<string | null>(null);
|
||||
|
||||
const availableAvatars = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user