diff --git a/apps/web/components/profile/cards/card-header.tsx b/apps/web/components/profile/cards/components/card-header.tsx similarity index 100% rename from apps/web/components/profile/cards/card-header.tsx rename to apps/web/components/profile/cards/components/card-header.tsx diff --git a/apps/web/components/profile/fields/checkbox-field.tsx b/apps/web/components/profile/cards/components/checkbox-field.tsx similarity index 100% rename from apps/web/components/profile/fields/checkbox-field.tsx rename to apps/web/components/profile/cards/components/checkbox-field.tsx diff --git a/apps/web/components/profile/cards/components/index.ts b/apps/web/components/profile/cards/components/index.ts new file mode 100644 index 0000000..e72c8dd --- /dev/null +++ b/apps/web/components/profile/cards/components/index.ts @@ -0,0 +1,3 @@ +export * from './card-header'; +export * from './checkbox-field'; +export * from './text-field'; diff --git a/apps/web/components/profile/fields/text-field.tsx b/apps/web/components/profile/cards/components/text-field.tsx similarity index 100% rename from apps/web/components/profile/fields/text-field.tsx rename to apps/web/components/profile/cards/components/text-field.tsx diff --git a/apps/web/components/profile/cards/data-card.tsx b/apps/web/components/profile/cards/data-card.tsx index a1d17b1..23f0969 100644 --- a/apps/web/components/profile/cards/data-card.tsx +++ b/apps/web/components/profile/cards/data-card.tsx @@ -1,10 +1,8 @@ 'use client'; -import { updateRole } from '../lib/actions'; import { type ProfileProps } from '../types'; -import { ProfileCardHeader } from './card-header'; +import { CheckboxWithText, DataField, ProfileCardHeader } from './components'; +import { updateRole } from './lib/actions'; import { getProfile, updateProfile } from '@/actions/profile'; -import { CheckboxWithText } from '@/components/profile/fields/checkbox-field'; -import { DataField } from '@/components/profile/fields/text-field'; import { Button } from '@repo/ui/components/ui/button'; import { Card } from '@repo/ui/components/ui/card'; import { useQuery } from '@tanstack/react-query'; diff --git a/apps/web/components/profile/lib/actions.ts b/apps/web/components/profile/cards/lib/actions.ts similarity index 100% rename from apps/web/components/profile/lib/actions.ts rename to apps/web/components/profile/cards/lib/actions.ts