refactor(profile): reorganize into actions/components/schemas

This commit is contained in:
Théo LAGACHE
2026-06-23 16:06:23 +02:00
parent ca3535bc1c
commit ebb6ba59f3
29 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
import { toast } from "sonner";
import { useRouter, useSearchParams } from "next/navigation";
import TwoFactorForm from "@/features/profile/2fa-form";
import TwoFactorForm from "@/features/profile/components/2fa-form";
export const GuardForm = () => {
const router = useRouter();
@@ -5,12 +5,12 @@ import { Tabs, TabsContent } from "@/components/ui/tabs";
import { ProfileSidebar } from "./profile-sidebar";
import type { AuthProviderConfig } from "@/lib/auth/config";
import { User, Session, Account } from "@/db/schema/02_user";
import { ProfileGeneral } from "@/features/profile/profile-general";
import { ProfileGeneral } from "@/features/profile/components/profile-general";
import type { AvatarMode } from "@/features/onboarding/types";
import { ProfileSecurity } from "@/features/profile/profile-security";
import { ProfileProviders } from "@/features/profile/profile-providers";
import { ProfileAccount } from "@/features/profile/profile-account";
import { ProfileAppearance } from "@/features/profile/profile-appearance";
import { ProfileSecurity } from "@/features/profile/components/profile-security";
import { ProfileProviders } from "@/features/profile/components/profile-providers";
import { ProfileAccount } from "@/features/profile/components/profile-account";
import { ProfileAppearance } from "@/features/profile/components/profile-appearance";
type ProfileModalProps = {
open: boolean;
@@ -8,7 +8,7 @@ import { Loader2 } from "lucide-react";
import { useMutation } from "@tanstack/react-query";
import { toast } from "sonner";
import { authClient } from "@/lib/auth/auth-client";
import { TwoFactorSetupContent } from "@/features/profile/two-factor-setup-content";
import { TwoFactorSetupContent } from "@/features/profile/components/two-factor-setup-content";
import type { OnboardingMeta } from "@/features/onboarding/types";
export const StepSecurity = () => {
@@ -4,7 +4,7 @@ import { UploadIcon } from "lucide-react";
import { toast } from "sonner";
import { uploadUserImageAction } from "@/features/upload/upload.action";
import { useMutation } from "@tanstack/react-query";
import { updateImageUserAction } from "@/features/profile/avatar.action";
import { updateImageUserAction } from "@/features/profile/actions/avatar.action";
import { useRouter } from "next/navigation";
import { User } from "@/db/schema/02_user";
import React, { ChangeEvent } from "react";
@@ -21,7 +21,7 @@ import {
createApiKeysAction,
deleteApiKeyAction,
getApiKeysAction,
} from "@/features/profile/profile.action";
} from "@/features/profile/actions/profile.action";
import {copyToClipboardWithMeta} from "@/components/common/copy-button";
import Link from "next/link";
@@ -21,7 +21,7 @@ import {useRouter} from "next/navigation";
import {updateProfileSettingsAction} from "./profile.action";
import {User} from "@/db/schema/02_user";
import {ProfileSchema, ProfileSchemaType} from "./general.schema";
import {AvatarWithUpload} from "@/features/profile/avatar-with-upload";
import {AvatarWithUpload} from "@/features/profile/components/avatar-with-upload";
import type { AvatarMode } from "@/features/onboarding/types";
interface ProfileGeneralProps {