components/profile: organize files & folders

This commit is contained in:
vchikalkin 2025-01-29 17:16:53 +03:00
parent f4cf25a54b
commit 313b0dc8fe
7 changed files with 8 additions and 7 deletions

View File

@ -1,10 +1,10 @@
'use client';
import { updateRole } from '../lib/actions';
import { type ProfileProps } from '../types';
import { ProfileCardHeader } from './card-header';
import { updateRole } from './lib/actions';
import { type ProfileProps } from './types';
import { getProfile, updateProfile } from '@/actions/profile';
import { CheckboxWithText } from '@/components/profile/checkbox-field';
import { DataField } from '@/components/profile/text-field';
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';

View File

@ -0,0 +1,2 @@
export * from './data-card';
export * from './person-card';

View File

@ -1,5 +1,5 @@
'use client';
import { type ProfileProps } from './types';
import { type ProfileProps } from '../types';
import { getProfile } from '@/actions/profile';
import { Avatar, AvatarFallback, AvatarImage } from '@repo/ui/components/ui/avatar';
import { Card } from '@repo/ui/components/ui/card';

View File

@ -1,2 +1 @@
export * from './data-card';
export * from './person-card';
export * from './cards';