diff --git a/apps/web/components/contacts/contacts-list.tsx b/apps/web/components/contacts/contacts-list.tsx index 78389e2..5702157 100644 --- a/apps/web/components/contacts/contacts-list.tsx +++ b/apps/web/components/contacts/contacts-list.tsx @@ -1,5 +1,6 @@ 'use client'; +import { DataNotFound } from '../shared/alert'; import { ContactRow } from '../shared/contact-row'; import { useCustomerContacts } from '@/hooks/api/contacts'; import { LoadingSpinner } from '@repo/ui/components/ui/spinner'; @@ -9,7 +10,7 @@ export function ContactsList() { if (isLoading) return ; - if (!contacts.length) return
Контакты не найдены
; + if (!contacts.length) return ; return (
diff --git a/apps/web/components/orders/order-form/service-select.tsx b/apps/web/components/orders/order-form/service-select.tsx index a3f0ceb..87f9783 100644 --- a/apps/web/components/orders/order-form/service-select.tsx +++ b/apps/web/components/orders/order-form/service-select.tsx @@ -1,5 +1,6 @@ 'use client'; +import { DataNotFound } from '@/components/shared/alert'; import { useServicesQuery } from '@/hooks/api/services'; import { useOrderStore } from '@/stores/order'; import { type ServiceFieldsFragment } from '@repo/graphql/types'; @@ -18,10 +19,10 @@ export function ServiceSelect() { }, }); - if (!services?.length) return null; + if (!services?.length) return ; return ( -
+
{services.map((service) => service && )}
); @@ -40,7 +41,7 @@ function ServiceCard({ documentId, name }: Readonly) { return (