refactor components/profile

This commit is contained in:
vchikalkin 2025-05-23 17:09:03 +03:00
parent 74fa57ea44
commit 8bac33ef79
7 changed files with 7 additions and 9 deletions

View File

@ -1,3 +0,0 @@
export * from './checkbox-field';
export * from './link-button';
export * from './text-field';

View File

@ -1,8 +1,9 @@
'use client';
import { CardSectionHeader } from '../ui';
import { CheckboxWithText, DataField } from './components';
import { type ProfileProps } from './types';
import { type ProfileProps } from '../types';
import { CheckboxWithText } from './checkbox-field';
import { DataField } from './text-field';
import { CardSectionHeader } from '@/components/ui';
import { useCustomerMutation, useCustomerQuery } from '@/hooks/api/customers';
import { Enum_Customer_Role as Role } from '@repo/graphql/types';
import { Button } from '@repo/ui/components/ui/button';

View File

@ -1,8 +1,8 @@
/* eslint-disable canonical/id-match */
'use client';
import { LinkButton } from './components';
import { type ProfileProps } from './types';
import { type ProfileProps } from '../types';
import { LinkButton } from './link-button';
import { useCustomerQuery } from '@/hooks/api/customers';
import { Enum_Customer_Role } from '@repo/graphql/types';

View File

@ -1,7 +1,7 @@
'use client';
import { LoadingSpinner } from '../common/spinner';
import { type ProfileProps } from './types';
import { LoadingSpinner } from '@/components/common/spinner';
import { useCustomerQuery } from '@/hooks/api/customers';
import { Avatar, AvatarFallback, AvatarImage } from '@repo/ui/components/ui/avatar';
import { Card } from '@repo/ui/components/ui/card';